On master, as a small example:
In [1]: df = pd.DataFrame([[1,2,3,4],[5,6,7,8]], columns=['A','B','A','B'])
In [2]: df
Out[2]:
A B A B
0 1 2 3 4
1 5 6 7 8
In [4]: df.to_excel('test_excel_duplicate_columns.xlsx')
gives:
So the values of columns 2 and 3 are swapped (not the column names)
BTW, this happens both with .xlsx as .xls (openpyxl / xlsxwriter / xlwt)
Possibly related: #10982, #10970
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4