I'm trying to do a value_count for a specific column in my dataframe
For example:
<Fruit>
0 'apple'
1 'apple, orange'
2 'orange'
How do I sum it so it will count it even if it is in a list? So the above should give me:
'Apple' 2
'Orange' 2
I tried turning the string into a list, but not sure how to value_count over fields with a list of values.