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

REF: dont _try_cast for user-defined functions #29698

Merged
merged 26 commits into from
Nov 21, 2019

Conversation

jbrockmendel
Copy link
Member

Also add a whatsnew note for #29641 and a comment in core.apply that ive been meaning to get in

@WillAyd
Copy link
Member

WillAyd commented Nov 19, 2019

Can you add test(s) for this?

@WillAyd WillAyd added Groupby Timezones Timezone data dtype labels Nov 19, 2019
@jbrockmendel
Copy link
Member Author

Can you add test(s) for this?

This is turning out to be surprisingly difficult. Which suggests its all-the-more worthwhile

@jbrockmendel
Copy link
Member Author

Can you add test(s) for this?

So far the answer is "no". i haven't been able to find a case that fails in master but works in this PR.

@WillAyd
Copy link
Member

WillAyd commented Nov 19, 2019

How did you come across the behavior in the whatsnew?

@jbrockmendel
Copy link
Member Author

How did you come across the behavior in the whatsnew?

Thats the whatsnew note I forgot to include in #29641.

@WillAyd
Copy link
Member

WillAyd commented Nov 19, 2019

Ah OK. So not necessarily tied to the rest of the PR?

@jbrockmendel
Copy link
Member Author

So not necessarily tied to the rest of the PR?

Right. ditto for the comment in core.apply

@@ -439,6 +439,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrameGroupby.agg` not able to use lambda function with named aggregation (:issue:`27519`)
- Bug in :meth:`DataFrame.groupby` losing column name information when grouping by a categorical column (:issue:`28787`)
- Bug in :meth:`DataFrameGroupBy.rolling().quantile()` ignoring ``interpolation`` keyword argument (:issue:`28779`)
- Bug in :meth:`DataFrameGroupBy.agg` with timezone-aware datetime64 column incorrect casting results to the original dtype (:issue:`29641`)
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add a sub-section in api-changes. this is a non-trivial change i think.

Copy link
Member Author

Choose a reason for hiding this comment

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

sure, but since this note is orthogonal to this PR, im going to do that in a separate PR. removing this note for now.

Copy link
Contributor

Choose a reason for hiding this comment

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

k

@jreback jreback added this to the 1.0 milestone Nov 21, 2019
@jreback jreback merged commit e29a341 into pandas-dev:master Nov 21, 2019
@jreback
Copy link
Contributor

jreback commented Nov 21, 2019

thanks

@jbrockmendel jbrockmendel deleted the faster-gb9 branch November 21, 2019 16:02
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Groupby Timezones Timezone data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants