Skip to content

BUG: Fix bug in quantile() for resample and groupby with Timedelta #37145

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 8 commits into from
Oct 31, 2020

Conversation

phofl
Copy link
Member

@phofl phofl commented Oct 15, 2020

@phofl phofl added Groupby Resample resample method Timedelta Timedelta data type labels Oct 15, 2020
Copy link
Member

@rhshadrach rhshadrach left a comment

Choose a reason for hiding this comment

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

lgtm, the just one change in the whatsnew that was discussed.

@phofl
Copy link
Member Author

phofl commented Oct 22, 2020

Sorry, was waiting for some kind of feedback :) Changed the whatsnew

@@ -495,6 +495,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrame.groupby.rolling` returning wrong values with partial centered window (:issue:`36040`).
- Bug in :meth:`DataFrameGroupBy.rolling` returned wrong values with timeaware window containing ``NaN``. Raises ``ValueError`` because windows are not monotonic now (:issue:`34617`)
- Bug in :meth:`Rolling.__iter__` where a ``ValueError`` was not raised when ``min_periods`` was larger than ``window`` (:issue:`37156`)
- Bug in :meth:`df.groupby(..).quantile() <pandas.core.groupby.DataFrameGroupBy.quantile>` and :meth:`df.resample(..).quantile() <pandas.core.resample.Resampler.quantile>` raised ``TypeError`` when values to calculate quantile over where ``Timedelta`` (:issue:`29485`)
Copy link
Member

Choose a reason for hiding this comment

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

where -> were. Also, I think it's okay to just say e.g. "when values were of type Timedelta"

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@rhshadrach
Copy link
Member

rhshadrach commented Oct 27, 2020

Windows py38_np18 failed to start, Windows py37_np16 failed on test_binary_arith_ops (expected).

@rhshadrach
Copy link
Member

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

@rhshadrach
Copy link
Member

Same result. @phofl Can you merge master? test_binary_arith_ops should now pass and hopefully py38_np18 will start.

@phofl
Copy link
Member Author

phofl commented Oct 29, 2020

Done

@phofl
Copy link
Member Author

phofl commented Oct 29, 2020

Failure seems unrelated

@jreback jreback merged commit dcde1f4 into pandas-dev:master Oct 31, 2020
@jreback
Copy link
Contributor

jreback commented Oct 31, 2020

thanks @phofl

@phofl phofl deleted the 29485 branch October 31, 2020 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Groupby Resample resample method Timedelta Timedelta data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

groupby.quantile() fails on Timedelta columns
5 participants