Skip to content

Commit

Permalink
remove specifying format of date
Browse files Browse the repository at this point in the history
  • Loading branch information
alistairewj committed Aug 25, 2024
1 parent 72fa263 commit 2cd3360
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], 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)]
Expand Down

0 comments on commit 2cd3360

Please sign in to comment.