count distinct in python column code example
Example: pandas count distinct values in a column
Series.value_counts(self, normalize=False, sort=True, ascending=False, bins=None, dropna=True)
Series.value_counts(self, normalize=False, sort=True, ascending=False, bins=None, dropna=True)