From 03b8cce083e7fb1b0dcf1ef6fe13d4afca803d42 Mon Sep 17 00:00:00 2001 From: isaacmg Date: Thu, 2 Dec 2021 17:05:11 -0400 Subject: [PATCH] add min1 34 4 --- flood_forecast/preprocessing/temporal_feats.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flood_forecast/preprocessing/temporal_feats.py b/flood_forecast/preprocessing/temporal_feats.py index 9f9abafd0..70b04da03 100644 --- a/flood_forecast/preprocessing/temporal_feats.py +++ b/flood_forecast/preprocessing/temporal_feats.py @@ -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":