Skip to content

fix(dtypes): ensure consistent behavior of is_string_dtype for Categorical #62117

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MengAiDev
Copy link

  • Handle Categorical series and CategoricalDtype consistently in is_string_dtype
  • Add tests to verify consistent results for various Categorical scenarios

Fix: #62109

…rical

- Handle Categorical series and CategoricalDtype consistently in is_string_dtype
- Add tests to verify consistent results for various Categorical scenarios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: pd.api.types.is_string_dtype() returns inconsistent results for Categorical series vs dtype
1 participant