Hi
after dropping the duplicates, it is still there
after dropping the duplicates, it is still there
data.sort_values(by=['CNTRNO','DATECREATED']) data.drop_duplicates(['CNTRNO'], keep='last') data.duplicated('CNTRNO')
Output:0 False
1 False
2 True
3 True
4 True
5 False
6 True
7 True
8 True
9 True
10 True
11 True
12 True