1# make a copy of dataframe
2scaled_features = df.copy()
3
4col_names = ['co_1', 'col_2', 'col_3', 'col_4']
5features = scaled_features[col_names]
6
7# Use scaler of choice; here Standard scaler is used
8scaler = StandardScaler().fit(features.values)
9features = scaler.transform(features.values)
10
11scaled_features[col_names] = features