find geomean of a df

58

find geomean of a df -

# Computing geometric mean
# Storing into a DataFrame column
df['Geometric Mean'] = stats.gmean(df.iloc[:, 1:3], axis=1)
df

Comments

Submit
0 Comments