I have a dataframe as below:
| Year | Cause of Death |Gender| Total Case |
| 2016 | Killed | M | 3 |
| 2016 | Suicide | M | 5 |
| 2016 | Killed | F | 7 |
| 2017 | Killed | F | 12 |
| 2017 | Killed | M | 2 |
| 2017 | Suicide | F | 5 |
| 2017 | Suicide | M | 6 |
From this dataframe, I want to create a new datafarame as below :
|Year|Cause of Death|Total Case|
|2016| Killed | 10 |
| | Suicide | 5 |
|2017| Killed | 14 |
| | Suicide | 11 |
Any simple way to do this?
Thanks