I have a dataframe that looks like:
Len | Count
-----------
100 | 5
105 | 10
3 | 2
1000| 21
...
I'd like to bin with Len but use a custom bin, something like bins = [100, 200, 300, ...] to mark the endpoints. However, after binning, I'd like to sum the Count values for all the rows that fall into each bin. Is there a clean way to do this in Pandas?