-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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: resample ops includes sampled column #47079
Comments
This change seems to cause a KeyError if the on column is used with agg
pandas 1.4.4 outputs ws week_starting 2018-01-31 4 2018-02-28 4 pandas 1.5.0 outputs
|
Thanks for reporting this @selasley. For most ops, I don't think having the field used in
|
This is similar to an example in the
DataFrame.resample
docstringI am not sure, but it seems to me it's not intended to use the
on
column in the aggregation. Because of #46560, this is current throwing warnings when.first
is replaced by e.g..sum
or.mean
and there is no way to safely avoid them.Marking this for 1.5 because of the introduced warnings.
The text was updated successfully, but these errors were encountered: