Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Removing all locations with 2 or less items.
- counts = non_mv.location.value_counts()
- loc_gt2 = counts[counts > 2]
- popular_locations = non_mv[non_mv.location.isin(loc_gt2.keys())]
- plt.figure(figsize=(10,5))
- sns.violinplot(x="location", y="price", data=popular_locations, scale="width", inner="stick")
- plt.show();
Add Comment
Please, Sign In to add comment