When using the idxmax() function in Pandas, I keep receiving this error.
idxmax()
Traceback (most recent call last): File \"/Users/username/College/yea
In short, try this
best_c = results_table.loc[results_table['Mean recall score'].astype(float).idxmax()]['C_parameter']
instead of
best_c = results_table.loc[results_table['Mean recall score'].idxmax()]['C_parameter']