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

Function test_concat_unknown_divisions_errors

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

Source from the content-addressed store, hash-verified

1713
1714
1715def test_concat_unknown_divisions_errors():
1716 a = pd.Series([1, 2, 3, 4, 5, 6])
1717 b = pd.Series([4, 3, 2, 1])
1718 aa = dd.from_pandas(a, npartitions=2, sort=False).clear_divisions()
1719 bb = dd.from_pandas(b, npartitions=2, sort=False).clear_divisions()
1720
1721 with pytest.raises(ValueError):
1722 with pytest.warns(UserWarning): # Concat with unknown divisions
1723 dd.concat([aa, bb], axis=1).compute()
1724
1725
1726def test_concat3():

Callers

nothing calls this directly

Calls 2

clear_divisionsMethod · 0.45
computeMethod · 0.45

Tested by

no test coverage detected