Skip to content

How can I make a KeyArray hashable under the new system? #17407

Closed Answered by jakevdp
NeilGirdhar asked this question in Q&A
Discussion options

You must be logged in to vote

Rather than isinstance(x, KeyArray), you can use issubdtype(x.dtype, dtypes.prng_key). See #17297 for some discussion.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jakevdp
Comment options

@NeilGirdhar
Comment options

Answer selected by NeilGirdhar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants