Skip to content

Commit 6cc099b

Browse files
committed
add back format conversion
1 parent 1a28a60 commit 6cc099b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mimic-iv/buildmimic/sqlite/import.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
def process_dataframe(df: pd.DataFrame, subjects: t.Optional[t.List[int]] = None) -> pd.DataFrame:
5151
for c in df.columns:
5252
if c.endswith('time') or c.endswith('date'):
53-
df[c] = pd.to_datetime(df[c])
53+
df[c] = pd.to_datetime(df[c], format='ISO8601')
5454

5555
if subjects is not None and 'subject_id' in df:
5656
df = df.loc[df['subject_id'].isin(subjects)]

0 commit comments

Comments
 (0)