I'm trying to split a two types of pandas dataframe that contains a column with lists inner.
type 1
col1 col2
------------
foo [foo,hi]
doo [li,ha]
type 2
col1
---------------
[foo, [foo,hi]]
[doo [li,ha]]
Is there a way to split both dataframe in columns and get
col1 col2 col3
--------------
foo, foo, hi
doo, li, ha
Thanks