Groupby and sort

Hi

This is a small example of my data.

I want to group by name and date and keep only the top 3 most recent date by name.

The last part is my problem

SAMPLE.xlsx

Thanks

Br