Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
748
def
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
755
def
test_read_csv_no_sample():
Callers
nothing calls this directly
Calls
3
filetext
Function · 0.90
read_csv
Method · 0.80
compute
Method · 0.45
Tested by
no test coverage detected