Untitled

From Wet Rhinoceros, 4 Months ago, written in Plain Text, viewed 59 times.
URL http://codebin.org/view/cd332b0e Embed
Download Paste or View Raw
  1. top_15_gr = top_15.groupby('category').agg({'count': 'sum'}).sort_values('count', ascending = False)
  2. fig = px.bar(top_15_gr,
  3.              x='count',
  4.              y=top_15_gr.index,
  5.              text='count',
  6.              color=top_15_gr.index
  7.             )
  8. fig.update_layout(title='Количество заведений по категориям из топ-15 популярных сетей Москвы',
  9.                   xaxis_title='Количество',
  10.                   yaxis_title='Категория')
  11.  
  12. fig.show()

Reply to "Untitled"

Here you can reply to the paste above