Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ test_broadcast
Function
test_broadcast
dask/dataframe/tests/test_dataframe.py:4713–4716 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
4711
4712
4713
def
test_broadcast():
4714
df = pd.DataFrame({
"x"
: [1, 2, 3, 4, 5]})
4715
ddf = dd.from_pandas(df, npartitions=2)
4716
assert_eq(ddf - (ddf.sum() + 1), df - (df.sum() + 1))
4717
4718
4719
def
test_scalar_with_array():
Callers
nothing calls this directly
Calls
2
assert_eq
Function · 0.90
sum
Method · 0.45
Tested by
no test coverage detected