Jump to
https://stackoverflow.com/questions/41620920/groupby-conditional-sum-of-adjacent-rows-pandas