standard scalar python code example
Example 1: min max scaler sklearn
from sklearn.preprocessing import MinMaxScaler
scaler = MinMaxScaler()
scaler.fit_transform(X_train)
scaler.transform(X_test)
Example 2: fit(X).transform(X.astype(float)
fit(X).transform(X.astype(float)