SHARE
TWEET

Untitled

a guest Jan 28th, 2020 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. plt.figure(figsize=(20, 10))
  2. plt.grid()
  3. sns.barplot(orient='h', y='object_type', x='id', hue='chain', data=data.groupby(['chain', 'object_type']).agg({'id':'count'}).reset_index().sort_values(by='object_type'))
  4. plt.title('Сетевые и несетевые заведения', fontsize=25)
  5. plt.xlabel('число заведений', fontsize=15)
  6. plt.ylabel('')
  7. plt.legend(('сетевые', 'несетевые'), fontsize=15)
  8. plt.show()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top