Skip to content

Commit 3369506

Browse files
author
Sebastian Goldmann
committed
adjusted test on rolling kurt and skew
1 parent 86f416d commit 3369506

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/tests/window/test_rolling.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1833,10 +1833,12 @@ def test_rolling_skew_kurt_floating_artifacts():
18331833

18341834
sr = Series([1 / 3, 4, 0, 0, 0, 0, 0])
18351835
r = sr.rolling(4)
1836+
18361837
result = r.skew()
1837-
assert (result[-2:] == 0).all()
1838+
assert np.isnan(result[-2:]).all()
1839+
18381840
result = r.kurt()
1839-
assert (result[-2:] == -3).all()
1841+
assert np.isnan(result[-2:]).all()
18401842

18411843

18421844
def test_numeric_only_frame(arithmetic_win_operators, numeric_only):

0 commit comments

Comments
 (0)