MCPcopy
hub / github.com/pandas-dev/pandas / test_ewma_adjust

Function test_ewma_adjust

pandas/tests/window/test_ewm.py:248–252  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

246
247
248def test_ewma_adjust():
249 vals = Series(np.zeros(1000))
250 vals[5] = 1
251 result = vals.ewm(span=100, adjust=False).mean().sum()
252 assert np.abs(result - 1) < 1e-2
253
254
255def test_ewma_cases(adjust, ignore_na):

Callers

nothing calls this directly

Calls 5

SeriesClass · 0.90
absMethod · 0.80
sumMethod · 0.45
meanMethod · 0.45
ewmMethod · 0.45

Tested by

no test coverage detected