Answers for "how to do standardization of dataframe"

1

column standardization pandas

columns = ['A', 'B','C'] #specify the column names
for col in columns:
  df[col] = (df[col] - df[col].mean())/df[col].std()
Posted by: Guest on August-31-2021

Code answers related to "how to do standardization of dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language