Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to count number of unique values in a column python

pd.value_counts(df.Account_Type)

Gold        3
Platinum    1
Name: Account_Type, dtype: int64
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #count #number #unique #values #column #python
ADD COMMENT
Topic
Name
6+1 =