from sklearn import preprocessing df_scaled = pd.DataFrame(preprocessing.scale(df), columns=['friends_scaled', 'happiness_scaled']) df_scaled.head()