Snippet 1
df["C"] = df[["A", "B"]].max(axis=1)
Snippet 2
max_value_column = df["column_name"].max()
Copyright © Code Fetcher 2020
Snippet 1
df["C"] = df[["A", "B"]].max(axis=1)
Snippet 2
max_value_column = df["column_name"].max()
Copyright © Code Fetcher 2020