Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ shifted_sum
Function
shifted_sum
dask/dataframe/tests/test_rolling.py:51–54 ·
view source on GitHub ↗
(df, before, after, c=0)
Source
from the content-addressed store, hash-verified
49
50
51
def
shifted_sum(df, before, after, c=0):
52
a = df.shift(before)
53
b = df.shift(-after)
54
return
df + a + b + c
55
56
57
@pytest.mark.parametrize(
"npartitions"
, [1, 4])
Callers
2
test_map_overlap
Function · 0.70
test_map_overlap_multiple_dataframes
Function · 0.70
Calls
1
shift
Method · 0.45
Tested by
no test coverage detected