NVIDIA / NVIDIA/cudf

dask_cudf.read_csv doesn't support StringIO

Open
#12,903 1 comment 0 reactions 0 assignees View on GitHub
0 - Backlog dask feature request Python
Dominant language
C++
Stars
9.8k
Forks
1.1k
Avg merge
3d 6m
Merged PRs (30d)
278

Description

`dask_cudf.read_csv()` is calling `cudf.read_csv()` internally.
However, dask_cudf.read_csv() doesn't support StringIO input.

Description of api mislead (it seems copied over from cudf.read_csv())
```
path : str, path object, or file-like object
Either a path to a file (a str, pathlib.Path, or
py._path.local.LocalPath), URL (including http, ftp, and S3 locations),
or any object with a read() method (such as builtin open() file
handler function or StringIO).
```
Currently, StringIO input falls into https://github.com/rapidsai/cudf/blob/branch-23.04/python/dask_cudf/dask_cudf/io/csv.py#L99

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.