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:732–736 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
730
731
732
def
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
739
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