I have data that looks like this:
And the numbers are either zero or one. I want to make a plot of this, but of course it looks crazy because values are either 0 or 1, so the lines jump around a lot. How can I group the rows by 5s or 10s, summing all the data in each group, so that I can make a more meaningful plot?