Answers for "Find the max of two or more columns with pandas with column names"

1

max of two columns pandas

df["C"] = df[["A", "B"]].max(axis=1)
Posted by: Guest on November-12-2020

Code answers related to "Find the max of two or more columns with pandas with column names"

Python Answers by Framework

Browse Popular Code Answers by Language