-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Lack of NamedTuple indexing methods #27021
Comments
Worth noting that indexing a named tuple with arrays will be type unstable. What would be nice is to be able to index them with tuples:
Getting constants to propagate correctly for type stability would be a challenge. |
Worth implementing, should I go forward with this? |
I should xref #24019 - I feel we should have a full set of non-scalar indexing operations between any |
@bramtayl If the output is an array and we preserve the |
I'll also repeat something I wrote on the PR:
So I think this is discussed in #30845 |
| |
Couldn't find an existing issue that quite addressed this, apologize if dup (or naïve).
It just might be nice to have these indexing methods at some point down the road.
Thoughts?
The text was updated successfully, but these errors were encountered: