MCPcopy
hub / github.com/dask/dask / test_read_csv_convert_string_config

Function test_read_csv_convert_string_config

dask/dataframe/io/tests/test_csv.py:376–383  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

374
375
376def test_read_csv_convert_string_config():
377 pytest.importorskip("pyarrow", reason="Requires pyarrow strings")
378 with filetext(csv_text) as fn:
379 df = pd.read_csv(fn)
380 with dask.config.set({"dataframe.convert-string": True}):
381 ddf = dd.read_csv(fn)
382 df_pyarrow = df.astype({"name": "string[pyarrow]"})
383 assert_eq(df_pyarrow, ddf, check_index=False)
384
385
386@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 5

filetextFunction · 0.90
assert_eqFunction · 0.90
read_csvMethod · 0.80
setMethod · 0.80
astypeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…