For each buyer with 2+ orders, compare their average gap between orders with the days since their last order (as of 31 Dec 2024). Flag at_risk when days since last > 2 × average gap.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.