i have a dataframe with following data :
invoice_no dealer billing_change_previous_month date
110 1 0 2016-12-31
100 1 -41981 2017-01-30
5505 2 0 2017-01-30
5635 2 58730 2016-12-31
i want to have only one dealer with the maximum date . The desired output should be like this :
invoice_no dealer billing_change_previous_month date
100 1 -41981 2017-01-30
5505 2 0 2017-01-30
each dealer should be distinct with maximum date, thanks in advance for your help.