I have a pandas DataFrame in the following form:
col1 col2
1 a {hu, fdf, ko, dss}
2 b {sdsjdn, lk}
3 c {sds, aldj, dhva}
Now I want to split the set values over multiple rows to make it look like this:
col1 col2
1 a hu
2 a fdf
3 a ko
4 a dss
5 b sdsjdn
6 b lk
7 c sds
8 c aldj
9 c dhva
Anyone has any insights how I can do this?