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

Function test_singleton_divisions

dask/dataframe/tests/test_multi.py:2062–2069  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2060
2061
2062def test_singleton_divisions():
2063 df = pd.DataFrame({"x": [1, 1, 1]}, index=[1, 2, 3])
2064 ddf = dd.from_pandas(df, npartitions=2)
2065 ddf2 = ddf.set_index("x")
2066
2067 joined = ddf2.join(ddf2, rsuffix="r")
2068 assert joined.divisions == (1, 1)
2069 joined.compute()
2070
2071
2072def test_repartition_repeated_divisions():

Callers

nothing calls this directly

Calls 3

set_indexMethod · 0.80
joinMethod · 0.45
computeMethod · 0.45

Tested by

no test coverage detected