Pandas using value_counts
\nimport pandas as pd\n\ndef find_classes(courses: pd.DataFrame) -> pd.DataFrame:\n    cnt = courses["class"].value_counts().to_frame()\n    return cnt[cnt["cou
```\nimport pandas as pd\n\ndef find_classes(courses: pd.DataFrame) -> pd.DataFrame:\n    cnt = courses["class"].value_counts().to_frame()\n    return cnt[cnt["count"] >= 5].reset_index()["class"].to_frame()\n```
[]