I have a DataFrame in pandas with following layout:
title date value1
0 ABC 6/2/2018 1900
1 ABC 6/1/2018 1000
2 ABC 5/29/2018 405
3 ABC 3/18/2018 300
4 ABC 3/17/2018 50
5 LMO 6/1/2018 100
6 LMO 5/30/2018 10
7 LMO 5/29/2018 1
I want to create df2
. It will only contain rows of titles with latest date . I am new python and pandas therefore have to ask for help.
df2
:
title date value1
0 ABC 6/2/2018 1900
1 LMO 6/1/2018 100