drop_duplicates not working in pandas?
问题 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 using the drop_duplicates function, the code is accepted by the console. But, when printed to the new excel file, duplicates still remain within the day. Am I missing something? Is something nullifying the drop_duplicates function? My code is as follows: import datetime import xlrd import pandas as pd #identify excel file paths