Answers for "How to normalize the data to get to the same range in python pandas"

1

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()))
Posted by: Guest on June-16-2020

Code answers related to "How to normalize the data to get to the same range in python pandas"

Python Answers by Framework

Browse Popular Code Answers by Language