getting a column that corresponds to the average of two columns in pandas

Solutions on MaxInterview for getting a column that corresponds to the average of two columns in pandas by the best coders in the world

showing results for - "getting a column that corresponds to the average of two columns in pandas"
Marilyn
12 Mar 2018
1df_mean = df[["a", "b"]].mean()