I\'m working on a data base with some columns, and I drop duplicates after sorting values by date (format Y-m-d). My df is like the following :
id date