average value of a column pandas and show another column code example
Example 1: calculating mean for pandas column
df["columnName"].mean()
Example 2: pandas new column average of other columns
col = df.loc[: , "salary_1":"salary_3"]
df['salary_mean'] = col.mean(axis=1)