Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to normalize the data to get to the same range in python pandas

# Assuming same lines from your example
cols_to_norm = ['Age','Height']
survey_data[cols_to_norm] = survey_data[cols_to_norm].apply(lambda x: (x - x.min()) / (x.max() - x.min()))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #normalize #data #range #python #pandas
ADD COMMENT
Topic
Name
5+7 =