You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix groupby-resample KeyError when resampling on Index and giving explicit list of columns. (#50876)
* Add failing test reproducing groupby-resample KeyError (#50840)
* Fix groupby-resample KeyError (#50840) by adding None check.
* Update whatsnew for #50840
* Improve coverage with multi and missing column groupby-resample tests.
* Refactor groupby-resample tests via TestCase to remove duplicate code.
* Revert "Refactor groupby-resample tests via TestCase to remove duplicate code."
This reverts commit d522606.
* Fix typo in bug fix entry for #50840 in doc/source/whatsnew/v2.0.0.rst
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v2.0.0.rst
+1
Original file line number
Diff line number
Diff line change
@@ -1100,6 +1100,7 @@ Groupby/resample/rolling
1100
1100
- Bug in :meth:`.DataFrameGroupBy.transform` and :meth:`.SeriesGroupBy.transform` would raise incorrectly when grouper had ``axis=1`` for ``"idxmin"`` and ``"idxmax"`` arguments (:issue:`45986`)
1101
1101
- Bug in :class:`.DataFrameGroupBy` would raise when used with an empty DataFrame, categorical grouper, and ``dropna=False`` (:issue:`50634`)
1102
1102
- Bug in :meth:`.SeriesGroupBy.value_counts` did not respect ``sort=False`` (:issue:`50482`)
1103
+
- Bug in :meth:`.DataFrameGroupBy.resample` raises ``KeyError`` when getting the result from a key list when resampling on time index (:issue:`50840`)
0 commit comments