Пример эксперта из тестов:
Код: Выделить всё
Loyalty# Year Month YearMonthDate NumFlights ...
101902 2019 1 2019-01-01 0.0 ...
101902 2019 1 2019-01-01 0.0 ...
Подробнее здесь: [url]https://stackoverflow.com/questions/79802715/should-i-drop-duplicates-before-merging-two-dataframes-or-after-the-merge[/url]