Easy solution || MySQL || Pandas || Beats 100% !!
Code\n\n# Write your MySQL query statement below\nSELECT actor_id,director_id\nFROM ActorDirector \nGROUP BY actor_id,director_id\nHAVING count(timestamp)>=3;\n
# Code\n```\n# Write your MySQL query statement below\nSELECT actor_id,director_id\nFROM ActorDirector \nGROUP BY actor_id,director_id\nHAVING count(timestamp)>=3;\n```\n```\nimport pandas as pd\n\ndef actors_and_directors(actor_director: pd.DataFrame) -> pd.DataFrame:\n    df = actor_director.groupby([\'actor_id\',\'director_id\']).agg(count =(\'director_id\',\'count\')).reset_index()\n    df = df[df[\'count\'] >= 3]\n    return df[[\'actor_id\',\'director_id\']]\n```
['MySQL', 'Pandas']