Skip to content
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

BUG: Tuple subclasses should work as tuple in df.iloc[key] #50625

Closed

Conversation

dicristina
Copy link
Contributor


This patch makes tuple subclasses behave the same as tuple in df.iloc[key] and df.loc[key]. All but one of the tests pass. The failing test (indexing/test_loc.py::TestLocBaseIndependent::test_loc_getitem_index_namedtuple) raises an exception on df.loc[key] (not .iloc). I've opened issue #50597 where I suggest deprecating the behavior in that test. This patch would enforce that deprecation in addition to closing #48188.

I'm opening this as is WIP but please comment. I have doubts on whether I'm on the right track with this.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 7, 2023

This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this.

@github-actions github-actions bot added the Stale label Feb 7, 2023
@mroeschke
Copy link
Member

Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.

@mroeschke mroeschke closed this Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Using NamedTuples with .iloc fails
2 participants