Skip to content

Instantly share code, notes, and snippets.

@infinite-Joy
Created August 5, 2017 05:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infinite-Joy/9d56fbdac86cf62975e73d03267adf72 to your computer and use it in GitHub Desktop.
Save infinite-Joy/9d56fbdac86cf62975e73d03267adf72 to your computer and use it in GitHub Desktop.
from sklearn.preprocessing import StandardScaler
column_names = ['Open', 'High', 'Low', 'Last', 'Close', 'Total Trade Quantity', 'Turnover (Lacs)']
X_hitech = df_hitech.loc[:, column_names].values
X_bhagyanagar = df_bhagyanar.loc[:, column_names].values
X_hudco = df_hudco.loc[:, column_names].values
X = np.concatenate([X_hitech, X_bhagyanagar, X_hudco], axis=0)
X_std = StandardScaler().fit_transform(X)
print(X_std.shape)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment