Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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