Skip to content

Commit

Permalink
ensure seconds can be parsed in datetime cols
Browse files Browse the repository at this point in the history
  • Loading branch information
prakaa committed Jul 25, 2023
1 parent e04b6c9 commit becf69e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nemseer/data_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def _parse_datetime_cols(df: pd.DataFrame) -> pd.DataFrame:
dt_cols = DATETIME_COLS
dt_cols_present = dt_cols.intersection(set(df.columns.tolist()))
for col in dt_cols_present:
df.loc[:, col] = pd.to_datetime(df[col], format=DATETIME_FORMAT)
df.loc[:, col] = pd.to_datetime(df[col], format=DATETIME_FORMAT + ":%S")
return df


Expand Down

0 comments on commit becf69e

Please sign in to comment.