Replaced applymap to .apply because the former is being depricated

This commit is contained in:
2024-06-17 13:47:54 +02:00
parent ed1641af55
commit b66dc11a62

View File

@ -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)