I have a transaction data frame as follows.
customer_id order_date product_id value($)
139 2015-07-08 A 0.174
139 2015-06-08 B 1.236
432 2017-08-09 E 0.205
474 2019-08-27 A 0.374
164 2022-05-08 D 0.278
How do I find how many customers returned after one year (365 days) of inactivity, two years (730 days) of inactivity etc.?