Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas count

>>> df.set_index(["Person", "Single"]).count(level="Person")
        Age
Person
John      2
Lewis     1
Myla      1
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #pandas #count
ADD COMMENT
Topic
Name
8+7 =