Never posted here before, but after exhausting my knowledge of the appropriate keywords and tinkering with cumsum and groupby, I\'ve pretty much just concluded I\'m enough o