If I have a DataFrame such that:
DataFrame
pd.DataFrame( {\"name\" : \"John\", \"days\" : [[1, 3, 5, 7]] })
Probably somehow like this:
df2 = pd.DataFrame(columns = df.columns) for i,r in df.iterrows(): for e in r.days: new_r = r.copy() new_r.days = e df2 = df2.append(new_r) df2