Skip to content

ERR: raise KeyError on invalid column name in aggregate #19566

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 7, 2018

Conversation

jreback
Copy link
Contributor

@jreback jreback commented Feb 7, 2018

@jreback jreback added Error Reporting Incorrect or improved errors from pandas Resample resample method labels Feb 7, 2018
@jreback jreback added this to the 0.23.0 milestone Feb 7, 2018
@jreback
Copy link
Contributor Author

jreback commented Feb 7, 2018

cc @discort

@@ -647,7 +647,7 @@ Groupby/Resample/Rolling
- Bug in :func:`DataFrame.groupby` where aggregation by ``first``/``last``/``min``/``max`` was causing timestamps to lose precision (:issue:`19526`)
- Bug in :func:`DataFrame.transform` where particular aggregation functions were being incorrectly cast to match the dtype(s) of the grouped data (:issue:`19200`)
- Bug in :func:`DataFrame.groupby` passing the `on=` kwarg, and subsequently using ``.apply()`` (:issue:`17813`)
- Bug in :func:`DataFrame.resample().aggregate` not raising a `ValueError` when aggregating a non-existent column (:issue:`16766`)
- Bug in :func:`DataFrame.resample().aggregate` not raising a ``ValueError`` when aggregating a non-existent column (:issue:`16766`, :issue:`19566`)
Copy link
Contributor

Choose a reason for hiding this comment

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

@jreback

Didn't you forget to replace ValueError by KeyError at this line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

shoot yeah must not have committed
thanks

@jreback jreback merged commit 4e1fcba into pandas-dev:master Feb 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error Reporting Incorrect or improved errors from pandas Resample resample method
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants