-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Keep name after DataFrame drop (issue 2939) #2961
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
Conversation
Ag, although this is working locally, there is a typo in my test case... and yet it still passes. Presumably this is because |
I removed the (Aside: should |
Sorry, this last commit is a bad one, I shouldn't have done it. We shouldn't be checking names (only) on the I should have added this to Is there a way to drop this last commit? (Should I just add another reverting it?) |
http://stackoverflow.com/questions/927358/how-to-undo-last-git-commit git reset HEAD-1 then u can recommit rebase then force push to update the remote |
just add as an option to asset_frame_equal |
or try getattr(left,'names',None) == getattr(right,'names',None) so will check on if one side is bad neither or both is ok though (as names prob or maybe it's just a few - not sure |
Thanks @jreback, I will close this pull-request and add as separate pull. |
ok u can do it with this one .. make a new commit that fixes what u want will replace the commits here with the revised ones |
@jreback I'm not sure what you mean about getattr... I squashed my commits to one, and added them, will make the pull-request now (I default I'll have a play in a separate branch for I'd prefer to be able to set default |
@jreback I'll give that a try for good measure :) |
getattr will allow u to check names not sure how much these names are correctly propagating (or not) |
@jreback But it should always have the attribute I will investigate :) |
I don't know - not sure when they r assigned or if a default is assigned |
I think it's always there:
|
so if you set check_names to True |
Precisely, so far it seems to be mostly expected results not including the name field. (I'm working through it.) |
This should fix #2939.