Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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

PREVIOUS NEXT
Code Example
Python :: how to make a discord bot delete messages python 
Python :: pandas has no attribute scatter_matrix 
Python :: plotly grid lines color 
Python :: swap keys and values in dictionary python 
Python :: dictionary from two columns pandas 
Python :: logging python utf-8 
Python :: r2 score sklearn 
Python :: iterate through csv python 
Python :: timestamp change python 
Python :: split string in the middle python 
Python :: droaw heat map in python for null values 
Python :: E tensorflow/stream_executor/cuda/cuda_dnn.cc:329] Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR 
Python :: python screen recorder 
Python :: pandas sort values reset index 
Python :: load saved model 
Python :: tracking mouse position tkinter python 
Python :: pyttsx3 pip 
Python :: bar chart with seaborn 
Python :: upload file in colab 
Python :: python print os platform 
Python :: django settings module LOGIN_URL 
Python :: dataframe deep copy 
Python :: use beautifulsoup 
Python :: how to install panda3D 
Python :: python repeating scheduler 
Python :: check package version jupyter python 
Python :: python printing date 
Python :: python flat list from list of list 
Python :: pip install ffmpeg 
Python :: bs4 from url 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =