Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- categories = ['west', 'central', 'urban']
- fig, axes = plt.subplots(1, 3, figsize=(15, 5))
- plt.suptitle('Box Plot of Location vs Crime Rate', fontsize=18)
- for idx, category in enumerate(categories):
- sns.boxplot(x=cat,y='crmrte', data=crimeData,
- ax=axes[idx]).set_title(category+' vs Crime Rate')
- plt.show()
Add Comment
Please, Sign In to add comment