-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Dataframe rename issue. #4403
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
Comments
can you supply a reproducible for these initial frames (e.g. a function which does it exactly) e.g. something that can be evaled to created it because need to reproduce the unicode characters
|
i think that's a possibly spurious raise there...it should probably be a bare |
i can repro this using the above frames @halleygithub please supply some code to create the above frames. there's a bug in |
ahh duplicate |
we really need to remove that |
no that raise is correct just str(df) |
huh? the raise doesn't show the correct location of the exception because it catches everything here's part of the traceback
this doesn't tell me anything about the location of the raise except that it was somewhere in looping thru only when i removed maybe there's a way to show that without removing the how would it be different anyway? would the possibly caught NameError / UnboundLocalError be raised instead? |
different characters but same error results. |
curiously if you type k.rename(columns={'TClose_x':'TClose'}) the error does not show up 😠 |
I think there is a pr out there to take out the e but regardless the apply hits the error but its really in the construction can u post your creation example? |
it's there |
this seems fishy
where is |
@halleygithub thanks for the report |
I attach the cPickle dump file of (df4, df5) here : http://ajqznkugcw.l25.yunpan.cn/lk/QnPqhJRCMdspq So if you want, you can download it to take a check . It seems that the issue is solved. So How can I resolve my probelm ? Can I have the latest daily development builds of the pandas windows binaries from http://pandas.pydata.org/pandas-build/dev/ ? My application did meet several issues after upgrading and need to test one by one. Thanks. |
OK. I manually revise the merge.py and get thing run. Still expect binary builds. Thanks, |
Great |
Can you please add this as a known-issue in the 0.12 whatsnew? along with the DeprecationWarnings? |
We can add it in the dev docs, but i'm pretty sure things are "frozen" for 0.12 stuff |
Would you like to submit a pull request? |
What's the status of master? Do we need to create a maintenance branch and start backporting bug fixes? |
this is fixed in 0.12 IIRC |
actually master at this point is ok if u really wanted to release |
merge() is broken in the 0.12 macports release I got yesterday |
Can you be a bit more specific than just "broken"? Please open an issue if you can. |
@jreback this is not fixed in 0.12. checkout of |
I'm saying that this issue 4403 (merge breaks on indexing) is still in the 0.12 release on macports. People will hit this and at minimum it needs to documented as a known-issue in the whatsnew, or some such. I had to manually edit the changes of pull request 4410. |
@jtratner I stand corrected this was fixed early 0.13 IMHO this is not worth a 0.12.1 at this point |
@jreback, does it not occur on (any?) df merge with a non-unique index? Separate to the timeline for merging the fix, I'm suggesting this be noted in the 0.12 whatsnew. |
@smcinerney no this only occurs after a merge with a non unique index after the merge that u then rename I am not averse to posting something in the docs. though I have found that people usually just ask on so, mailing list or post an issue since everyone is now aware I think we can respond pretty easily (even issues that have really big and bold warnings are often ignored in the docs :) |
I just upgrage from 0.11 to 0.12 version. And meet dataframe rename error caused by upgrading. (It worked well in 0.11) .
The text was updated successfully, but these errors were encountered: