DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
pandas groupby agg count unique
df.groupby("A").agg({"B": lambda x: x.nunique()})
PREVIOUS
NEXT
Tagged:
#pandas
#groupby
#agg
#count
#unique
ADD COMMENT
Topic
COMMENT
Name
7+7 =
Submit