Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

plot the distribution of value_counts() python

# data -> your dataframe
# only shows the first 20 most recurring values
plt.title("title", x=0.9, y=0.9)
data['column_name'].value_counts()[:20].plot(kind='barh')
plt.show()
 
PREVIOUS NEXT
Tagged: #plot #distribution #python
ADD COMMENT
Topic
Name
2+7 =