DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
max of two columns pandas
df["C"] = df[["A", "B"]].max(axis=1)
PREVIOUS
NEXT
Tagged:
#max
#columns
#pandas
ADD COMMENT
Topic
COMMENT
Name
2+3 =
Submit