pandas select only earliest event for duplicates

Solutions on MaxInterview for pandas select only earliest event for duplicates by the best coders in the world

showing results for - "pandas select only earliest event for duplicates"
Lucia
03 Mar 2016
1data_all.sort_values(data_all.columns.tolist())\
2          .drop_duplicates(subset=['CB date'], keep='first')
similar questions