Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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() 
  
 
PREVIOUS NEXT
Tagged: #standardize #columns #pandas
ADD COMMENT
Topic
Name
4+7 =