compute mean pandas column code example
Example 1: Row wise mean pandas
df['mean'] = df.iloc[:, 0:4].mean(axis=1)
Example 2: Row wise mean pandas
df['mean'] = df.iloc[:, [0,1,2,3,4].mean(axis=1)
df['mean'] = df.iloc[:, 0:4].mean(axis=1)
df['mean'] = df.iloc[:, [0,1,2,3,4].mean(axis=1)