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

BUG: __eq__ raising for new arrow string dtype for incompatible objects #56245

Merged
merged 5 commits into from
Dec 21, 2023

Conversation

phofl
Copy link
Member

@phofl phofl commented Nov 29, 2023

@phofl phofl added this to the 2.2 milestone Nov 29, 2023
@phofl
Copy link
Member Author

phofl commented Dec 8, 2023

cc @mroeschke gentle ping

@mroeschke mroeschke added Numeric Operations Arithmetic, Comparison, and Logical operations Strings String extension data type and string data labels Dec 9, 2023
@phofl
Copy link
Member Author

phofl commented Dec 21, 2023

cc @mroeschke

doc/source/whatsnew/v2.2.0.rst Show resolved Hide resolved
pandas/core/arrays/string_arrow.py Outdated Show resolved Hide resolved
@@ -530,3 +530,19 @@ def test_int_dtype_different_index_not_bool(self):

result = ser1 ^ ser2
tm.assert_series_equal(result, expected)

def test_pyarrow_numpy_string_invalid(self):
Copy link
Member

Choose a reason for hiding this comment

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

I would expect we already have tests for this behaviour, but then only in cases where it's not yet parametrized to use the string dtype?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes

Co-authored-by: Joris Van den Bossche <[email protected]>
@phofl phofl merged commit 64c20dc into pandas-dev:main Dec 21, 2023
45 checks passed
@phofl phofl deleted the string_comparison branch December 21, 2023 22:45
cbpygit pushed a commit to cbpygit/pandas that referenced this pull request Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Numeric Operations Arithmetic, Comparison, and Logical operations Strings String extension data type and string data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: __eq__ raises NotImplementedError for new arrow string dtype
3 participants