()
| 374 | |
| 375 | |
| 376 | def 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( |