Answers for "standardise columns python"

0

standardise columns python

from sklearn.preprocessing import StandardScaler
df[['col1', 'col2']] = StandardScaler().fit_transform(df[['col1', 'col2']])
Posted by: Guest on April-30-2020

Python Answers by Framework

Browse Popular Code Answers by Language