Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- from sklearn.preprocessing import MinMaxScaler
- f = open("100.csv", "r")
- data = f.read().split(" ")
- df = np.array(data)
- df = df.reshape(df.shape[0],1)
- scaler = MinMaxScaler()
- transformed = scaler.fit_transform(df)
- print(transformed)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement