Skip to content

Conversation

abhaypsingh
Copy link

This prevents is_signed_integer_dtype and similar functions from raising on abstract NumPy classes and restores expected behaviour.

…#61781)

Replace reference to ``other`` with ``self`` in the generic mask/where docstring template so that the note correctly explains that misaligned index positions are filled based on alignment between `self` and `cond`, not `other` and `cond`. Fixes GH#61781.
DOC: Fix mask/where docstring to align with self and cond (pandas-dev#61781)
… type (pandas-dev#62018)

Wrap np.dtype() call in try/except to handle abstract numpy types like np.floating and return condition(type(None)) on TypeError.
@jbrockmendel
Copy link
Member

This is a small perf hit that will add up in a ton of places, all for something that we shouldn't expect to work anyway.

Copy link
Contributor

github-actions bot commented Sep 3, 2025

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 Sep 3, 2025
@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 Oct 5, 2025
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: pd.api.types.is_signed_integer_dtype(np.floating) throws TypeError

3 participants