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 :: debugging pytest in vscode 
Python :: how to send get request python 
Python :: discord.py add reaction to message 
Python :: how to play music on pygame 
Python :: count how many duplicates python pandas 
Python :: check if number is power of 2 python 
Python :: random color python matplotlib 
Python :: mongodb python get all documents 
Python :: docker python 3.8 ubuntu 
Python :: python f-string format date 
Python :: python calculate age from date of birth 
Python :: pandas drop empty rows 
Python :: convert a dictionary into dataframe python 
Python :: python -m pip install --upgrade 
Python :: dataframe rank groupby 
Python :: jupyter notebook show more rows 
Python :: text to speech python 
Python :: python range for float 
Python :: datetime one week ago python 
Python :: get distance between 2 multidimentional point in python 
Python :: godot code for movement for topdown game 
Python :: convert dictionary keys to int python 
Python :: csrf token exempt django 
Python :: python process id 
Python :: count words python 
Python :: check package version python 
Python :: trim text python 
Python :: maximizar ventana tkinter python 
Python :: how to download a page in python 
Python :: python - sort dictionary by value 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =