Search
 
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
Name
2+3 =