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

ENH/TST: Add BaseMethodsTests tests for ArrowExtensionArray #47552

Merged
merged 10 commits into from
Jul 5, 2022

Conversation

mroeschke
Copy link
Member

@mroeschke mroeschke commented Jun 30, 2022

@mroeschke mroeschke added Testing pandas testing functions or related to the test suite Arrow pyarrow functionality labels Jun 30, 2022
@mroeschke mroeschke added this to the 1.5 milestone Jun 30, 2022
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

lgtm. cc @jbrockmendel for a quick glance

@jbrockmendel
Copy link
Member

Will take a look today (and start whittling down the ping backlog)

@@ -49,8 +50,7 @@ def test_value_counts_with_normalize(self, data):
else:
expected = pd.Series(0.0, index=result.index)
expected[result > 0] = 1 / len(values)

if isinstance(data.dtype, pd.core.dtypes.dtypes.BaseMaskedDtype):
if na_value_for_dtype(data.dtype) is pd.NA:
Copy link
Member

Choose a reason for hiding this comment

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

not for this PR, but we probably need to find a way to let authors define na_value_for_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.

Probably similar to #27825

super().test_container_shift(data, frame, periods, indices)

@pytest.mark.xfail(
reason="result dtype pyarrow[bool] better than expected dtype object"
Copy link
Member

Choose a reason for hiding this comment

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

medium-term should just override the test with the correct/better behavior

Copy link
Member

@jbrockmendel jbrockmendel left a comment

Choose a reason for hiding this comment

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

LGTM

@mroeschke mroeschke merged commit 700ef33 into pandas-dev:main Jul 5, 2022
@mroeschke mroeschke deleted the arrow/method branch July 5, 2022 19:59
yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
…ev#47552)

* ENH/TST: Add BaseMethodsTests tests for ArrowExtensionArray

* Passing test now

* add xfails for arraymanager

* Fix typo

* Trigger CI

* Add xfails for min version and datamanger

* Adjust more tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arrow pyarrow functionality Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants