How do I get the unique values of a column of lists in pandas or numpy such that second column from
would result in 'action', 'crime', 'drama'.
The closest (but non-functional) solutions I could come up with were:
genres = data['Genre'].unique()
But this predictably results in a TypeError saying how lists aren't hashable.
TypeError: unhashable type: 'list'
Set seemed to be a good idea but
genres = data.apply(set(), columns=['Genre'], axis=1)
but also results in a
TypeError: set() takes no keyword arguments
