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

Function _read_csv

dask/tests/test_layers.py:151–159  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

149
150
151def _read_csv(tmpdir):
152 pd = pytest.importorskip("pandas")
153 dd = pytest.importorskip("dask.dataframe")
154
155 dd.from_pandas(
156 pd.DataFrame({"a": range(10)}),
157 npartitions=2,
158 ).to_csv(str(tmpdir))
159 return dd.read_csv(os.path.join(str(tmpdir), "*"))
160
161
162@pytest.mark.xfail(reason="#8480")

Callers

nothing calls this directly

Calls 3

to_csvMethod · 0.80
read_csvMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected