-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
BUG: eq not implemented for categorical and arrow backed strings #55364
Conversation
if isinstance(other, (ArrowExtensionArray, np.ndarray, list, BaseMaskedArray)): | ||
if isinstance( | ||
other, (ArrowExtensionArray, np.ndarray, list, BaseMaskedArray) | ||
) or isinstance(getattr(other, "dtype", None), CategoricalDtype): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So for Categorical, we don't need to extract the underlying values?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's what _box_pa is doing, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, I guess in _box_pa pa.array
is correctly handling it luckily which is good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge conflict otherwise LGTM
… and arrow backed strings
…orical and arrow backed strings) (#55381) Backport PR #55364: BUG: eq not implemented for categorical and arrow backed strings Co-authored-by: Patrick Hoefler <[email protected]>
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.