I have a panda series l=pd.Series([3, 1, 4, 2, [1, 2, 10]])
I need to get something like:
value count
3 1
1 2
4 1
2 2
10 1
l.value_counts()
gives me:
TypeError: unhashable type: 'list'
I even tried to flatten the list like this:
chain = itertools.chain(*l)
print(list(chain))
But it gives me:
TypeError: 'list' object is not callable