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:732–736  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

730
731
732def test_empty_csv_file():
733 with filetext("a,b") as fn:
734 df = dd.read_csv(fn, header=0)
735 assert len(df.compute()) == 0
736 assert list(df.columns) == ["a", "b"]
737
738
739def 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