DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
pandas unique values to list
df.groupby('param')['column'].nunique().sort_values(ascending=False).unique().tolist()
PREVIOUS
NEXT
Tagged:
#pandas
#unique
#values
#list
ADD COMMENT
Topic
COMMENT
Name
3+9 =
Submit