Pandas GroupBy Aggregation for Precision/Recall

You are given a classification model output dataset as a Pandas DataFrame, containing ground-truth labels and model predictions (and possibly prediction scores). Using pandas:

  1. Use groupby to agg...

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: