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

Function test_csv_integer_usecols

dask/dataframe/dask_expr/io/tests/test_io.py:110–115  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

108
109
110def test_csv_integer_usecols(tmpdir):
111 fn = _make_file(tmpdir, format="csv")
112 df = read_csv(fn, usecols=[0, 1], names=["x", "y"])
113 result = df["x"]
114 expected = pd.read_csv(fn, usecols=[0, 1], names=["x", "y"])["x"]
115 assert_eq(result, expected)
116
117
118def test_read_csv_keywords(tmpdir):

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
read_csvMethod · 0.80
_make_fileFunction · 0.70

Tested by

no test coverage detected