Advertisement
Guest User

Untitled

a guest
Apr 8th, 2020
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. import numpy as np
  2. from sklearn.preprocessing import MinMaxScaler
  3.  
  4.  
  5. f = open("100.csv", "r")
  6. data = f.read().split(" ")
  7.  
  8. df = np.array(data)
  9.  
  10. df = df.reshape(df.shape[0],1)
  11. scaler = MinMaxScaler()
  12.  
  13. transformed = scaler.fit_transform(df)
  14. print(transformed)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement