From 2cd33602afb7b86e77244f97d34f3be37883b295 Mon Sep 17 00:00:00 2001 From: Alistair Johnson Date: Sun, 25 Aug 2024 07:39:44 -0400 Subject: [PATCH] remove specifying format of date --- 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 6a4d52dd..bf93e251 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], format='ISO8601') + df[c] = pd.to_datetime(df[c]) if subjects is not None and 'subject_id' in df: df = df.loc[df['subject_id'].isin(subjects)]