Skip to content

BUG/ENH: fix pyarrow quantile xfails #50983

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

Merged
merged 1 commit into from
Feb 1, 2023

Conversation

jbrockmendel
Copy link
Member

fix 156 xfails and shave 49 seconds off the test runtime

@jbrockmendel jbrockmendel added the Arrow pyarrow functionality label Jan 26, 2023
@@ -1337,6 +1337,28 @@ def test_quantile(data, interpolation, quantile, request):
data = data.take([0, 0, 0])
ser = pd.Series(data)
result = ser.quantile(q=quantile, interpolation=interpolation)

if pa.types.is_timestamp(pa_dtype) and interpolation not in ["lower", "higher"]:
# rounding error will make the check below fail
Copy link
Member

Choose a reason for hiding this comment

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

For the rounding errors for interpolation not in ["lower", "higher"], is it due to the int casting or just the quantile computation?

Copy link
Member Author

Choose a reason for hiding this comment

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

not sure where it comes in. just checked that the results match what we get with DTA

@jbrockmendel
Copy link
Member Author

@mroeschke gentle ping on pyarrow xfail PRs

@mroeschke mroeschke added this to the 2.0 milestone Feb 1, 2023
@mroeschke mroeschke merged commit 0105aa2 into pandas-dev:main Feb 1, 2023
@mroeschke
Copy link
Member

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the pa-quantile branch February 1, 2023 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arrow pyarrow functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants