I just can't seem to connect the dots on this. I'm trying to do something similar to this question
I have a dataframe that takes the form:
| Origination | Orig Balance |
|---|---|
| Q1 | 3000 |
| Q1 | 2000 |
| Q1 | 4000 |
| Q2 | 3000 |
| Q2 | 3000 |
| Q3 | 1000 |
| Q3 | 4000 |
| Q3 | 3000 |
And I'm trying to create a dataframe that looks like this:
| Origination | Orig Balance |
|---|---|
| Q1 | 9000 |
| Q2 | 6000 |
| Q3 | 8000 |
I don't want to set the specific parameters, so something like df.loc[df['Origination'] == 'Q1', 'Orig Balance'].sum() wouldn't work for me.