Skip to content

Commit

Permalink
[Data] Fix read_parquet docstring (ray-project#39796)
Browse files Browse the repository at this point in the history
Some code text isn't rendering because there are missing newlines.

Signed-off-by: Balaji Veeramani <[email protected]>
  • Loading branch information
bveeramani committed Sep 22, 2023
1 parent 680b268 commit 1331068
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/ray/data/read_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,15 +584,17 @@ def read_parquet(
petal.width double
variety string
Read a directory in remote storage.
>>> ds = ray.data.read_parquet("s3:https://anonymous@ray-example-data/iris-parquet/")
Read multiple local files.
>>> ray.data.read_parquet(
... ["local:https:///path/to/file1", "local:https:///path/to/file2"]) # doctest: +SKIP
Specify a schema for the parquet file.
>>> import pyarrow as pa
>>> fields = [("sepal.length", pa.float32()),
... ("sepal.width", pa.float32()),
Expand All @@ -610,7 +612,6 @@ def read_parquet(
petal.width float
variety string
The Parquet reader also supports projection and filter pushdown, allowing column
selection and row filtering to be pushed down to the file scan.
Expand Down

0 comments on commit 1331068

Please sign in to comment.