14 January 2019 2 6K Report

I have data set with multi index

for example

hour crime type occurrence

0 A 2

0 b 5

0 c 12

1 A 3

1 b 0

1 c 22

2 A 2

2 b 1

2 c 34

I want plot line chart the percentage of crime type for each hour by python

so how can do that , I draw the figure using number of crime but percentage I cant I do not know how calculate total for each group oh hour

More Hg Ab's questions See All
Similar questions and discussions