Replaced applymap to .apply because the former is being depricated
This commit is contained in:
@ -495,7 +495,7 @@ def save_processed_dataframe_to_hdf5(df, annotator, src_hdf5_path, script_date,
|
||||
"""
|
||||
# Convert datetime columns to string
|
||||
datetime_cols = df.select_dtypes(include=['datetime64']).columns
|
||||
df[datetime_cols] = df[datetime_cols].applymap(str)
|
||||
df[datetime_cols] = df[datetime_cols].apply(str)
|
||||
|
||||
# Convert dataframe to structured array
|
||||
icad_data_table = utils.dataframe_to_np_structured_array(df)
|
||||
|
Reference in New Issue
Block a user