MCPcopy Create free account
hub / github.com/dask/dask / test_index_divisions

Function test_index_divisions

dask/dataframe/tests/test_dataframe.py:4747–4753  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4745
4746
4747def test_index_divisions():
4748 df = pd.DataFrame({"x": [1, 2, 3, 4, 5]})
4749 ddf = dd.from_pandas(df, npartitions=2)
4750
4751 assert_eq(ddf.index + 1, df.index + 1)
4752 assert_eq(10 * ddf.index, 10 * df.index)
4753 assert_eq(-ddf.index, -df.index)
4754
4755
4756def test_replace():

Callers

nothing calls this directly

Calls 1

assert_eqFunction · 0.90

Tested by

no test coverage detected