Answers for "create a new column named average and compute the average of all marks using functions. using panda"

15

mean of a column pandas

df["Column"].mean()
Posted by: Guest on May-13-2020
0

pandas new column average of other columns

col = df.loc[: , "salary_1":"salary_3"]
df['salary_mean'] = col.mean(axis=1)
Posted by: Guest on March-26-2021

Code answers related to "create a new column named average and compute the average of all marks using functions. using panda"

Python Answers by Framework

Browse Popular Code Answers by Language