(Pandas) 1-line
\ndef actors_and_directors(actor_director: pd.DataFrame) -> pd.DataFrame:\n    return actor_director.groupby(by=["actor_id", "director_id"], as_index=False).siz
```\ndef actors_and_directors(actor_director: pd.DataFrame) -> pd.DataFrame:\n    return actor_director.groupby(by=["actor_id", "director_id"], as_index=False).size().query("size >= 3").drop(labels="size", axis=1); \n```
[]