MCPcopy
hub / github.com/dask/dask / test_from_map_columns_required

Function test_from_map_columns_required

dask/dataframe/dask_expr/io/tests/test_io.py:370–382  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

368
369
370def test_from_map_columns_required():
371 with pytest.raises(TypeError, match=r"columns.*optional"):
372 from_map(func, ["foo"])
373 meta = make_meta(func2("foo", None))
374 ddf = from_map(func2, ["foo"], meta=meta)
375 ddf_expected = from_pandas(func2("foo", None), npartitions=1)
376
377 assert_eq(ddf, ddf_expected, check_divisions=False)
378
379 actual = from_map(func2, ["foo"], meta=meta)[["a"]].optimize()
380 expected = from_map(func2, ["foo"], meta=meta, columns=["a"]).optimize()
381
382 assert actual._name == expected._name
383
384
385def func_object(path):

Callers

nothing calls this directly

Calls 6

from_mapFunction · 0.90
from_pandasFunction · 0.90
assert_eqFunction · 0.90
make_metaFunction · 0.85
func2Function · 0.70
optimizeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…