Skip to content

Commit

Permalink
Silence pandas datetime warning
Browse files Browse the repository at this point in the history
Signed-off-by: zethson <[email protected]>
  • Loading branch information
Zethson committed May 7, 2024
1 parent aa8665e commit a6dbcea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ehrapy/io/_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ def _prepare_dataframe(initial_df: pd.DataFrame, columns_obs_only, columns_x_onl
no_datetime_object_col = []
for col in object_type_columns:
try:
pd.to_datetime(initial_df[col], format="mixed")
pd.to_datetime(initial_df[col], format="mixed", utc=True)
# only add to column_obs_only if not present already to avoid duplicates
if col not in columns_obs_only:
columns_obs_only.append(col)
Expand Down

0 comments on commit a6dbcea

Please sign in to comment.