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: ArrowExtensionArray(temporal).quantile raising for non-round results #52678

Merged
merged 2 commits into from
Apr 17, 2023

Conversation

lukemanley
Copy link
Member

Fixes the following:

import pandas as pd

ser = pd.Series([1, 2, 3], dtype="timestamp[s][pyarrow]")

ser.quantile([0.1])  # ArrowInvalid: Float value 1.2 was truncated converting to int64

@lukemanley lukemanley added Bug Arrow pyarrow functionality labels Apr 15, 2023
@mroeschke mroeschke added this to the 2.1 milestone Apr 17, 2023
@mroeschke mroeschke merged commit 35a121e into pandas-dev:main Apr 17, 2023
@mroeschke
Copy link
Member

Thanks @lukemanley

@lukemanley lukemanley deleted the arrow-quantile-temporal branch April 18, 2023 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arrow pyarrow functionality Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants