Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #aantal ongelukken per weekdag in 2016
  2.  
  3. %matplotlib inline
  4.  
  5. ct = slachtoffers[slachtoffers['YEAR'] == '2016']
  6. ct = ct[[ 'CD_DAY_OF_WEEK']].groupby(['CD_DAY_OF_WEEK']).size()
  7. ctplot = ct.plot.bar()
  8. ctplot.set_ylim([6000,9000])
  9.  
  10. ctplot.set_xlabel('Dag van de week')
  11. ctplot.set_ylabel('Aantal verkeersslachtoffers')
  12.  
  13. pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement