Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python - count how many unique in a column

df['var_1'].nunique()   # How many unque values are present in a variable
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #count #unique #column
ADD COMMENT
Topic
Name
1+5 =