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

Function test_comment

dask/dataframe/io/tests/test_csv.py:274–284  ·  view source on GitHub ↗
(dd_read, pd_read, files)

Source from the content-addressed store, hash-verified

272 [(dd.read_csv, pd.read_csv, csv_files), (dd.read_table, pd.read_table, tsv_files)],
273)
274def test_comment(dd_read, pd_read, files):
275 files = {
276 name: comment_header
277 + b"\n"
278 + content.replace(b"\n", b"# just some comment\n", 1)
279 for name, content in files.items()
280 }
281 with filetexts(files, mode="b"):
282 df = dd_read("2014-01-*.csv", comment="#")
283 expected_df = read_files_with(files, pd_read, comment="#")
284 assert_eq(df, expected_df, check_dtype=False)
285
286
287@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 5

filetextsFunction · 0.90
assert_eqFunction · 0.90
read_files_withFunction · 0.85
replaceMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected