We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e1ac6a commit 6275874Copy full SHA for 6275874
pandas/tests/reductions/test_stat_reductions.py
@@ -257,18 +257,3 @@ def test_kurt(self):
257
258
alt = lambda x: sp_stats.kurtosis(x, bias=False)
259
self._check_stat_op("kurt", alt, string_series)
260
-
261
- def test_kurt_corner(self):
262
- # test corner cases, kurt() returns NaN unless there's at least 4
263
- # values
264
- min_N = 4
265
- for i in range(1, min_N + 1):
266
- s = Series(np.ones(i))
267
- df = DataFrame(np.ones((i, i)))
268
- if i < min_N:
269
- assert np.isnan(s.kurt())
270
- assert np.isnan(df.kurt()).all()
271
- else:
272
- assert 0 == s.kurt()
273
- assert isinstance(s.kurt(), np.float64) # GH53482
274
- assert (df.kurt() == 0).all()
0 commit comments