Re: Untitled

From Stained Sloth, 6 Months ago, written in Plain Text, viewed 137 times. This paste is a reply to Untitled from Unique Horse - view diff
URL http://codebin.org/view/323594bb Embed
Download Paste or View Raw
  1.      
  2. pivot = data.groupby('platform')['total_sales'].agg(sum).sort_values(ascending=False).head()
  3. display(pivot)
  4.    
  5. top_five=['PS2', 'X360','PS3' ,'Wii' ,'DS' ]
  6.  
  7. for i in top_five:
  8.     data.query('platform == @i').plot(x='year_of_release',y='total_sales',kind='scatter', title=i)

Reply to "Re: Untitled"

Here you can reply to the paste above