Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #aantal ongelukken per weekdag in 2016
- %matplotlib inline
- ct = slachtoffers[slachtoffers['YEAR'] == '2016']
- ct = ct[[ 'CD_DAY_OF_WEEK']].groupby(['CD_DAY_OF_WEEK']).size()
- ctplot = ct.plot.bar()
- ctplot.set_ylim([6000,9000])
- ctplot.set_xlabel('Dag van de week')
- ctplot.set_ylabel('Aantal verkeersslachtoffers')
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement