DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
values of unique from dataframe with count
data
=
df
.
groupby
(
'ColumnName'
)
[
'IDColumnName'
]
.
nunique
(
)
print
(
data
)
PREVIOUS
NEXT
Tagged:
#values
#unique
#dataframe
#count
ADD COMMENT
Topic
COMMENT
Name
4+7 =
Submit