Skip to content

[Data][Docs] Code snippet in "Saving Data" doesn't work #52534

@bveeramani

Description

@bveeramani

Description

In the "Changing the number of output files" section of "Saving Data", if you try running the snippet below, you get an error:

import os
import ray

ds = ray.data.read_csv("s3://anonymous@ray-example-data/iris.csv")
ds.write_csv("/tmp/few_files/", min_rows_per_write=75)

print(os.listdir("/tmp/few_files/"))
...
TypeError: write_csv() got an unexpected keyword argument 'min_rows_per_write'

Link

https://docs.ray.io/en/latest/data/saving-data.html#changing-the-number-of-output-files

Metadata

Metadata

Assignees

No one assigned

    Labels

    community-backlogdataRay Data-related issuesdocsAn issue or change related to documentationgood-first-issueGreat starter issue for someone just starting to contribute to Ray

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions