Skip to content

dask_cudf.read_csv doesn't support StringIO  #12903

Open
@kijeungchoi

Description

@kijeungchoi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    0 - BacklogIn queue waiting for assignmentPythonAffects Python cuDF API.daskDask issuefeature requestNew feature or request

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions