I have a dataframe with a column that consists of lists of lists (of varying length).
One example:
df['east'][0]
gives
[array(['Indonesia', 'New Zealand'], dtype=object), array(['Indonesia', 'New Zealand'], dtype=object)]
I want to merge the lists inside of this bigger list and get rid of duplicates and make sure that data is presented clearly, i.e. simply
['Indonesia', 'New Zealand']
I tried some suggestions from here to remove duplicates, but, for example,for np.unique(functools.reduce(operator.add, east))
Python said "ValueError: operands could not be broadcast together with shapes (4,) (13,)"
I could usually solve problems, but here I am not sure what is happening - what are these arrays in the list.