Skip to content

[data] update paramter name in save_csv #52542

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion doc/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,6 @@ doctest(
"source/data/inspecting-data.rst",
"source/data/loading-data.rst",
"source/data/performance-tips.rst",
"source/data/saving-data.rst",
"source/data/working-with-images.rst",
"source/data/working-with-llms.rst",
"source/data/working-with-pytorch.rst",
Expand Down
6 changes: 3 additions & 3 deletions doc/source/data/saving-data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ Changing the number of output files
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

When you call a write method, Ray Data writes your data to several files. To control the
number of output files, configure ``min_rows_per_write``.
number of output files, configure ``min_rows_per_file``.

.. note::

``min_rows_per_write`` is a hint, not a strict limit. Ray Data might write more or
``min_rows_per_file`` is a hint, not a strict limit. Ray Data might write more or
fewer rows to each file. Under the hood, if the number of rows per block is
larger than the specified value, Ray Data writes
the number of rows per block to each file.
Expand All @@ -159,7 +159,7 @@ number of output files, configure ``min_rows_per_write``.
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)
ds.write_csv("/tmp/few_files/", min_rows_per_file=75)

print(os.listdir("/tmp/few_files/"))

Expand Down