Skip to content

Commit

Permalink
Merge branch 'master' into scale_shuffle
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacmg authored Dec 28, 2021
2 parents c0a4539 + 40d1ace commit 69b15a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flood_forecast/preprocessing/temporal_feats.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def create_feature(key: str, value: str, df: pd.DataFrame, dt_column: str):
"""
if key == "day_of_week":
df[key] = df[dt_column].map(lambda x: x.weekday())
elif key == "minute":
df[key] = df[dt_column].map(lambda x: x.minute)
elif key == "hour":
df[key] = df[dt_column].map(lambda x: x.hour)
elif key == "day":
Expand Down

0 comments on commit 69b15a0

Please sign in to comment.