My dataframe look like this:
Dividends Stock Splits
Date
2014-08-13 0.28 0.0
2015-04-27 0.30 0.0
2015-07-31 0.30 0.0
2016-05-05 0.30 0.0
2016-08-15 0.30 0.0
2017-05-04 0.30 0.0
2017-08-11 0.33 0.0
2018-05-03 0.50 0.0
2018-08-08 0.60 0.0
2019-05-02 0.60 0.0
2019-05-17 0.30 0.0
2019-08-05 0.30 0.0
2019-11-18 0.30 0.0
2020-04-07 0.33 0.0
2020-05-12 0.33 0.0
I like to add up the dividends for each year and display as below:
2015 0.60
2016 0.60
2017 0.63
2018 1.10
....
Any help would be very much appreciated. Many Thanks!