I want to draw plot by python based on this data
Id Duration (s) BinaryLabel
1 5 correct
2 4 incorrect
3 2 incorrect
4 3 incorrect
5 9 correct
6 6 correct
7 12 incorrect
My data is with 800 rows. and the duration is going from 0 to 55 seconds
My X axis contain duration column and I want it to be divided like: 0-----5-----10------15------20-----...-----55
and the Y should contain the percent of 'correct' values.
I.e. :
from 0 to 5, I will have 25% correct,
from 5 to 10 I will have 100% correct .etc.