Skip to content

Commit

Permalink
add back format conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
alistairewj committed Aug 26, 2024
1 parent 55e2080 commit 0cbcf47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mimic-iv/buildmimic/sqlite/import.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 0cbcf47

Please sign in to comment.