how to return a standardized column after an applied a function python code example
Example: standardise columns python
from sklearn.preprocessing import StandardScaler
df[['col1', 'col2']] = StandardScaler().fit_transform(df[['col1', 'col2']])
from sklearn.preprocessing import StandardScaler
df[['col1', 'col2']] = StandardScaler().fit_transform(df[['col1', 'col2']])