The purpose of my code is to import 2 Excel files, compare them, and print out the differences to a new Excel file.
However, after concatenating all the data, and us
I have just had this issue, and this was not the solution.
It may be in the docs - I admittedly havent looked - and crucially this is only when dealing with date-based unique rows: the 'date' column must be formatted as such.
If the date data is a pandas object dtype, the drop_duplicates will not work - do a pd.to_datetime first.