Reputation: 968
I have a dataframe where some cells contain lists, and I want to iterate through each item in each list with a simple print statement.
Date Names
0 2018_Q1 ['Faye', 'Mark', 'Shay', 'Alex']
1 2019_Q1 ['Pete', 'Alan', 'Stan', 'Faye']
2 2019_Q2 Mike
For example, the output should look something like:
2018_Q1
- Faye
- Mark
- Shay
- Alex
2019_Q1
- Pete
- Alan
- Stan
- Faye
2019_Q2
- Mike
How do I achieve this?
Upvotes: 1
Views: 34