explode multiple columns pandas

df.set_index('col1').apply(pd.Series.explode).reset_index()

Here is what the above code is Doing:
1. Set the index to be ‘col1’
2. Apply the explode function to the dataframe
3. Reset the index