From 43bdf69157e0bb0270fd96d7b2a35cd9ebc219aa Mon Sep 17 00:00:00 2001 From: Alexis Lucattini Date: Wed, 22 Nov 2023 22:13:12 +1100 Subject: [PATCH] Use pd NaT when using deidentified samples --- utils/accession.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(