Skip to content
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

(fix): equality check against singleton PandasExtensionArray #9032

Merged
merged 3 commits into from
May 22, 2024

Conversation

ilan-gold
Copy link
Contributor

@ilan-gold ilan-gold commented May 17, 2024

Something I just discovered, this snuck in while making changes elsewhere during the PR :(

  • Tests added
  • User visible changes (including notable bug fixes) are documented in whats-new.rst
  • New functions/methods are listed in api.rst

@ilan-gold
Copy link
Contributor Author

@dcherian could you look at this?

@@ -123,8 +123,6 @@ def __setitem__(self, key, val):
self.array[key] = val

def __eq__(self, other):
if np.isscalar(other):
other = type(self)(type(self.array)([other]))
Copy link
Contributor

Choose a reason for hiding this comment

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

so we just defer to pandas to handle the scalar case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That would be the idea.

@dcherian dcherian merged commit 9e240c5 into pydata:main May 22, 2024
28 checks passed
@ilan-gold ilan-gold deleted the ig/fix_equality_checl branch May 22, 2024 14:18
andersy005 added a commit that referenced this pull request May 23, 2024
* main:
  array api-related upstream-dev failures (#8854)
  (fix): equality check against singleton `PandasExtensionArray` (#9032)
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.

None yet

2 participants