Seyomi commited on
Commit
a649331
Β·
verified Β·
1 Parent(s): 7c96293

Upload helper.py

Browse files
Files changed (1) hide show
  1. utils/helper.py +7 -0
utils/helper.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ import pandas as pd
2
+
3
+ def rolling_window(df, column, window=5):
4
+ return df[column].rolling(window=window).mean()
5
+
6
+ def normalize_column(df, column):
7
+ return (df[column] - df[column].mean()) / df[column].std()