这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@heoh
Copy link
Owner

@heoh heoh commented Sep 16, 2025

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

Description

Fix a bug in BaseMaskedArray._cast_pointwise_result with all-NA values results returned object dtype instead of preserving the original dtype.

Additional Notes

In the original issue report the behavior was described for BooleanDtype. While preparing the fix, I added tests not only for BooleanDtype but also for integer dtypes (e.g. Int64) under the same all-NA condition. I thought it would be reasonable to ensure consistency across multiple ExtensionArray types.
If it's unnecessary or out of scope for this PR, I'll fix the tests only to the Boolean case as reported in the issue.

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.

2 participants