I am trying to do some topic analysis and I need to collapse a column in dataframe made up of lists, into one list of words.
So here's an approximation of what my data looks like:
import pandas as pd
d = {'Case': ["[wait, information, employer]","[case, assign, priority, level, 2, transmit]" ]}
df2 = pd.DataFrame(data=d)
I would like to get one list like list = ['wait', 'information', 'case','assign','priority', 'level']