When I run this code:
df[\'cqt_max\'] = df.apply(lambda row: np.amax(row[\'cqt\'], axis=1), axis=1) df.groupby(\'class\')[\'cqt_max\'].apply(lambda row: np.me