I have dug through many of SO posts to just find a Pandas solution that match my case but I could not.
The issue I have is that I have Dataframe which looks something like below:
$ df
email hashes
0 user@example.com (iz3s65inn942j1bmedv., iz3s65inn942j1bmedv., 10$0mw1ewlhqlm0l)
In my case nunique() and drop_duplicates() does not work as I need to get count of non-duplicate elements in the tuple itself. In the above case the outcome would be:
$ df
email hashes
0 user@example.com 1
How can I achieve this outcome and get count of non-duplicate elements of the tuple in hashes column?