From 6cc099b81df77157b08ab543288ef952424853ab Mon Sep 17 00:00:00 2001 From: Alistair Johnson Date: Mon, 26 Aug 2024 08:09:10 -0400 Subject: [PATCH] add back format conversion --- mimic-iv/buildmimic/sqlite/import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mimic-iv/buildmimic/sqlite/import.py b/mimic-iv/buildmimic/sqlite/import.py index 02b4f0b3..1cb8eb0d 100644 --- a/mimic-iv/buildmimic/sqlite/import.py +++ b/mimic-iv/buildmimic/sqlite/import.py @@ -50,7 +50,7 @@ def process_dataframe(df: pd.DataFrame, subjects: t.Optional[t.List[int]] = None) -> pd.DataFrame: for c in df.columns: if c.endswith('time') or c.endswith('date'): - df[c] = pd.to_datetime(df[c]) + df[c] = pd.to_datetime(df[c], format='ISO8601') if subjects is not None and 'subject_id' in df: df = df.loc[df['subject_id'].isin(subjects)]