Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sort value_counts output

#two approach can help
df['col'].value_counts().sort_index().plot.bar()

df['col'].value_counts(sort = True)
 
PREVIOUS NEXT
Tagged: #sort #output
ADD COMMENT
Topic
Name
9+2 =