I could not reproduce my example exactly, please imagine that every element of the list is wrapped in quotes and is a string variable. I'm not sure if that affects the overall answer, but wanted to include that info.
Given:
lis1= [['apples'],['bananas','oranges','cinnamon'],['pears','juice']]
lis2= [['john'],['stacy'],['ron']]
lis3= [['2015-11-24'], ['2014-02-23','2014-03-25', '2014-03-29'],['2018-02-01','2018-03-27']]
lis4= [['smells good'],['saweet','sour as hell','spicey is goody'],['it bites back','so good']]
pd.DataFrame({'fruits':lis1,'users':lis2, 'date': lis3, 'review': lis4})
I need:
lis1= ['apples','bananas','oranges','cinnamon','pears','juice']
lis2= ['john','stacy', 'stacy','stacy','ron','ron']
lis3= ['2015-11-24', '2014-02-23', '2014-03-25', '2014-03-29','2018-02-01', '2018-03-27']
lis4= ['smells good','saweet','sour as hell','spicey is goody','it bites back','so good']
pd.DataFrame({'fruits':lis1,'users':lis2, 'date': lis3, 'review': lis4})
I've tried to adapt an Itertools example but can't figure out to do this with 4 columns.