diff --git a/utils/accession.py b/utils/accession.py index 6223631..c294543 100644 --- a/utils/accession.py +++ b/utils/accession.py @@ -538,7 +538,7 @@ def sanitise_data_frame(input_df: pd.DataFrame) -> pd.DataFrame: input_df["date_of_birth"] = input_df.apply( lambda x: x.date_of_birth if hasattr(x, "date_of_birth") - else pd.NAT, + else pd.NaT, axis="columns" ) input_df["first_name"] = input_df.apply(