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