DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+5 =
Submit