Skip to content

Commit 679ad4e

Browse files
committed
fix issue pandas-dev#15305, update _libs\window.pyx and tests\test_window.py
1 parent eb34348 commit 679ad4e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/source/whatsnew/v0.21.0.txt

+2
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,8 @@ Groupby/Resample/Rolling
296296
- Bug in :func:`infer_freq` causing indices with 2-day gaps during the working week to be wrongly inferred as business daily (:issue:`16624`)
297297
- Bug in ``.rolling(...).quantile()`` which incorrectly used different defaults than :func:`Series.quantile()` and :func:`DataFrame.quantile()` (:issue:`9413`, :issue:`16211`)
298298
- Bug in ``groupby.transform()`` that would coerce boolean dtypes back to float (:issue:`16875`)
299+
- Bug in ``.rolling(...).apply(...)`` where when rolling apply on DataFrame
300+
with Datetime index and min_periods set to be greater than 1 (:issue:`15305`)
299301

300302
Sparse
301303
^^^^^^

pandas/tests/test_window.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def test_constructor_with_timedelta_window(self):
424424
tm.assert_frame_equal(result, expected)
425425

426426
def test_constructor_with_timedelta_window_and_minperiods(self):
427-
# GH 15440
427+
# GH 15305
428428
n = 10
429429
df = pd.DataFrame({'value': np.arange(n)},
430430
index=pd.date_range('2015-12-24',

0 commit comments

Comments
 (0)