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

Function test_read_csv_include_path_column

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

Source from the content-addressed store, hash-verified

452 "dd_read,files", [(dd.read_csv, csv_files), (dd.read_table, tsv_files)]
453)
454def test_read_csv_include_path_column(dd_read, files):
455 with filetexts(files, mode="b"):
456 df = dd_read(
457 "2014-01-*.csv",
458 include_path_column=True,
459 converters={"path": parse_filename},
460 )
461 filenames = df.path.compute().unique()
462 assert "2014-01-01.csv" in filenames
463 assert "2014-01-02.csv" not in filenames
464 assert "2014-01-03.csv" in filenames
465
466
467@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

filetextsFunction · 0.90
uniqueMethod · 0.45
computeMethod · 0.45

Tested by

no test coverage detected