Search
 
SCRIPT & CODE EXAMPLE
 

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() 
  
Comment

PREVIOUS NEXT
Code Example
Python :: pd.read_excel 
Python :: how to insert item last in list python 
Python :: Add Border to input Pysimplegui 
Python :: django create new project 
Python :: matplotlib position legend 
Python :: python anagram finder 
Python :: pandas drop column in dataframe 
Python :: check if host is reachable python 
Python :: how to install neat 
Python :: python make a dictionary 
Python :: basic pygame window 
Python :: how to run linux command in python 
Python :: make a script run itself again python 
Python :: install quick-mailer 
Python :: youtube-dl python get file name 
Python :: webdriver firefox install 
Python :: contains duplicate in python 
Python :: binary to decimal python 
Python :: python define random variables name 
Python :: pd merge 
Python :: pandas change order of columns in multiindex 
Python :: python hide details 
Python :: python date range 
Python :: python iterate with index 
Python :: numpy linspace 
Python :: async sleep python 
Python :: remove nans and infs python 
Python :: how to display csv in pandas 
Python :: Using python permutations function on a list 
Python :: ms access python dataframe 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =