I'm trying to explode the genres column into a separate data frame with (id, name) as columns.
this is the data frame I'm working with

this is what I'm trying to achieve

i havent been able to find a solution on my own what i have tried is to explode the genre
genres = df['genres'].explode()
genres = pd.DataFrame(df.genres.explode().values.tolist())