Guest User

Untitled

a guest
Dec 15th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. categories = ['west', 'central', 'urban']
  2. fig, axes = plt.subplots(1, 3, figsize=(15, 5))
  3. plt.suptitle('Box Plot of Location vs Crime Rate', fontsize=18)
  4.  
  5. for idx, category in enumerate(categories):
  6. sns.boxplot(x=cat,y='crmrte', data=crimeData,
  7. ax=axes[idx]).set_title(category+' vs Crime Rate')
  8. plt.show()
Add Comment
Please, Sign In to add comment