#Standard Scaler import pandas as pd from sklearn.preprocessing import StandardScaler data = { 'Feature1' : [100,200,300,400,500], 'Feature2' : [1,2,3,4,5] } data = pd.DataFrame(data) standard_scaler = StandardScaler() data_scaled = standard_scaler.fit_transform(data) data_scaled = pd.DataFrame(data_scaled, columns = data.columns) data_scaled
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter