Answers for "pandas standardize number columns"

1

standardize columns in 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 "pandas standardize number columns"

Python Answers by Framework

Browse Popular Code Answers by Language