I have a dataset in this form:
Customer_key Issue_dt Amount
45435 2021-03-19 566
64352 2021-06-22 843
43766 2020-04-29 754
45435 2021-06-21 547
There are many repeated customer_keys for different Issue_dt. I want to groupby customer_key and get the total Amount only for year 2021. Can someone please suggest, how to do that ??