calculate mean of a column in pandas df code example
Example 1: mean of a column pandas
df["Column"].mean()
Example 2: Row wise mean pandas
df['mean'] = df.iloc[:, [0,1,2,3,4].mean(axis=1)
df["Column"].mean()
df['mean'] = df.iloc[:, [0,1,2,3,4].mean(axis=1)