Feb-22-2018, 01:00 PM
Hi there
Why after drop the duplicates, the no of row data still same?
Why after drop the duplicates, the no of row data still same?
data.shapeoutput:(15631, 12)
data1 = data data1.sort_values(by=['MACHINERYSTATUS','DATECREATED']) data1.drop_duplicates(['CNTRNO'], keep='last') data1.shapeoutput: (15631, 12)