Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas normalize rows to max value

# credit to the Stack Overflow user in the source link
df.apply(lambda x: x/x.max(), axis=1)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #normalize #rows #max
ADD COMMENT
Topic
Name
6+4 =