daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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();
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