Here\'s some data from another question:
positive negative neutral 1 [marvel, moral, bold, destiny]
I did it this way:
df = pd.read_clipboard(sep='\s{2,}', engine='python') df = df.apply(lambda x: x.str.replace(r'[\[\]]*', '').str.split(',\s*', expand=False))
PS i'm sure - there must be a better way to do that...