how to find unique values count in pandas code example
Example 1: count unique pandas
df['column'].nunique()
Example 2: pandas count the number of unique values in a column
df['hID'].nunique()
5
Example 3: count unique values in python
words = ['a', 'b', 'c', 'a']
unique_words = set(words) # == set(['a', 'b', 'c'])
unique_word_count = len(unique_words) # == 3