-
-
Notifications
You must be signed in to change notification settings - Fork 18k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error converting DataFrame with duplicate columns to ndarray #2236
Comments
Any chance you could e-mail me the excel file? wesmckinn at gmail |
Done! Just a note that I am using Python 2.7 and the Excel file was created using Excel 2010 on Windows. Thx. |
The reindexing error is a red herring. I updated the title to reflect the underlying bug and I'll take a look now. |
You rock, Wes. Do I have to reinstall or do anything else? Just say the word... |
Yeah you'll have to install the dev version or wait til 0.9.1 is cut this Sent from my mobile device On Nov 13, 2012, at 8:07 PM, Joseph Lalonde notifications@github.com You rock, Wes. Do I have to reinstall or do anything else? Just say the — |
* commit 'v0.9.1rc1-27-ge374f0f': (52 commits) BUG: axes.color_cycle from mpl rcParams should not be joined as single string BUG: icol duplicate columns with integer sequence failure. close pandas-dev#2228 TST: unit test for pandas-dev#2214 BUG: coerce ndarray dtype to object when comparing series ENH: make vbench_suite/run_suite executable ENH: Use __file__ to determine REPO_PATH in vb_suite/suite.py BUG: 1 ** NA issue in computing new fill value in SparseSeries. close pandas-dev#2220 BUG: make inplace semantics of DataFrame.where consistent. pandas-dev#2230 BUG: fix internal error in constructing DataFrame.values with duplicate column names. close pandas-dev#2236 added back mask method that does condition inversion added condition testing to where that raised ValueError on an invalid condition (e.g. not an ndarray like object) added tests for same in core/frame.py TST: getting column from and applying op to a df should commute TST: add dual ( x op y <-> y op x ) tests for arith operators BUG: Incorrect error message due to zero based levels. close pandas-dev#2226 fixed file modes for core/frame.py, test/test_frame.py relaxed __setitem__ restriction on boolean indexing a frame on an equal sized frame in core/frame.py ENH: warn user when invoking to_dict() on df with non-unique columns BUG: modify df.iteritems to support duplicate column labels pandas-dev#2219 TST: df.iteritems() should yield Series even with non-unique column labels ...
Installed latest version of pandas 0.9.0 in case this was an error
Trying to read Excel file. That part seems ok.
Originally, I was trying iteritems() for each row of the pandas dataframe, as the id_company had to be verified against a mysql database (code not included). Same/similar error message to putting it into a tuple (code is below). Error message follows.
Note there is a .reindex() but it didn't work before, either. The reindex() was kind of a hail-mary.
As a work-around, I'm probably going to simply import from my target sql and do a join. I'm concerned because of the size of the datasets.
The text was updated successfully, but these errors were encountered: