Answers for "column standardization pandas"

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

Python Answers by Framework

Browse Popular Code Answers by Language