I have a following dataframe:
ID Skills
1 []
2 []
3 ['seo']
4 ['design', 'security', 'css', 'javascript']
5 ['design']
Now, I want to create a new dataframe like below:
ID Skills
1 None
2 None
3 seo
4 design
4 security
4 css
4 javascript
5 design
I tried using nested for loop with to iterate over individual strings, but its not giving the desired result. Also, tried the following code as well but no luck in either case.
ids = []
skills = []
for id, d in df.iteritems():
ids.append(id)
skills.append(pd.DataFrame(d))
pd.concat(skills, keys=ids)