Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
248
def
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
255
def
test_ewma_cases(adjust, ignore_na):
Callers
nothing calls this directly
Calls
5
Series
Class · 0.90
abs
Method · 0.80
sum
Method · 0.45
mean
Method · 0.45
ewm
Method · 0.45
Tested by
no test coverage detected