Guest User

Untitled

a guest
Jun 13th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #Removing all locations with 2 or less items.
  2. counts = non_mv.location.value_counts()
  3. loc_gt2 = counts[counts > 2]
  4.  
  5. popular_locations = non_mv[non_mv.location.isin(loc_gt2.keys())]
  6.  
  7. plt.figure(figsize=(10,5))
  8. sns.violinplot(x="location", y="price", data=popular_locations, scale="width", inner="stick")
  9. plt.show();
Add Comment
Please, Sign In to add comment