Created
January 28, 2020 10:01
-
-
Save lakshay-arora/1dcecb1329b136e45a883479731fa429 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.preprocessing import StandardScaler | |
# create an object of the StandardScaler | |
scaler = StandardScaler() | |
# fit with the Item_MRP | |
scaler.fit(np.array(train_data.Item_MRP).reshape(-1,1)) | |
# transform the data | |
train_data.Item_MRP = scaler.transform(np.array(train_data.Item_MRP).reshape(-1,1)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment