Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to count number of distinct elements in specified axis

DataFrame.nunique(axis=0, dropna=True) # Counts number of distinct elements in specified axis
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #How #count #number #distinct #elements #axis
ADD COMMENT
Topic
Name
4+8 =