I\'ve got the following df: [1]: https://i.stack.imgur.com/TALFv.png
And by using this groupby: [2]: https://i.stack.imgur.com/PHA63.png
I would like to get an