from sklearn.preprocessing import StandardScaler df[['col1', 'col2']] = StandardScaler().fit_transform(df[['col1', 'col2']])