Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sklearn.preprocessing import StandardScaler
- scaler=StandardScaler()
- df['cons.price.idx'] = scaler.fit_transform(df[['cons.price.idx']]).reshape(-1,1)
- df['cons.conf.idx'] = scaler.fit_transform(df[['cons.conf.idx']]).reshape(-1,1)
- df['euribor3m'] = scaler.fit_transform(df[['euribor3m']]).reshape(-1,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement