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

Function test_empty_csv_file

dask/dataframe/io/tests/test_csv.py:748–752  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

746
747
748def test_empty_csv_file():
749 with filetext("a,b") as fn:
750 df = dd.read_csv(fn, header=0)
751 assert len(df.compute()) == 0
752 assert list(df.columns) == ["a", "b"]
753
754
755def test_read_csv_no_sample():

Callers

nothing calls this directly

Calls 3

filetextFunction · 0.90
read_csvMethod · 0.80
computeMethod · 0.45

Tested by

no test coverage detected