Skip to content

Conversation

@antareepsarkar
Copy link

Description

This adds checking for the type np.str_ when checking for strings in core.dtypes.inference.

Motivation

Got the idea when came to know about np.str_

Copy link
Member

@mroeschke mroeschke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, but could you show an example with a public pandas API where this change is needed?

@jbrockmendel
Copy link
Member

np.str_ subclasses str, so hard to see how this can make a difference

@antareepsarkar
Copy link
Author

antareepsarkar commented Nov 8, 2025

Yes, np.str_ inherits str. I should have checked. Sorry for that.
Probably, this change is not required.

@mroeschke
Copy link
Member

OK going to close then

@mroeschke mroeschke closed this Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants