Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
.to_excel() cuts off columns #10982
Comments
|
In an odd coincidence, I think this is another Excel-dup-column issue:
and there are eight columns missing. By changing the window into df, you change which columns (if any) are duplicated. |
balzer82
commented
Sep 4, 2015
|
Thats it! There are columns with exactly the same name on this position |
jorisvandenbossche
added Bug Prio-high Excel
labels
Sep 4, 2015
terrytangyuan
referenced
this issue
Sep 4, 2015
Closed
ENH: Added warning when excel file contains duplicate column names #10991
jorisvandenbossche
added this to the
0.17.0
milestone
Sep 5, 2015
jorisvandenbossche
referenced
this issue
Sep 5, 2015
Closed
BUG: to_excel swaps order of values of duplicate columns #11007
jreback
modified the milestone: Next Major Release, 0.17.0
Sep 8, 2015
jreback
modified the milestone: 0.17.1, Next Major Release
Oct 5, 2015
jreback
closed this
in #11237
Oct 10, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
balzer82 commentedSep 3, 2015
Today I discovered a strange behavior: When I am writing a DataFrame with
.to_excel(), it cuts columns. Compared with the same DataFrame with.to_csv()or.head(), you can see the difference, that the last 8 columns are missing.You can reproduce this by downloading
Features.pklfrom here and then:Funny part: If you
df.ix[:,-71:].to_excel('Features.xlsx', index=False, header=False)you have one of the missing columns. If you dodf.ix[:,-70:].to_excel('Features.xlsx', index=False, header=False)you have two and so on...