Skip to content

Commit

Permalink
[Data] Fix documentation for union and limit (#40299)
Browse files Browse the repository at this point in the history
  • Loading branch information
c21 committed Oct 13, 2023
1 parent ba6ae3e commit 0f07950
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/ray/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1696,9 +1696,8 @@ def train_test_split(
)
return ds.split_at_indices([ds_length - test_size])

@ConsumptionAPI
def union(self, *other: List["Dataset"]) -> "Dataset":
"""Materialize and concatenate :class:`Datasets <ray.data.Dataset>` across rows.
"""Concatenate :class:`Datasets <ray.data.Dataset>` across rows.
The order of the blocks in the datasets is preserved, as is the
relative ordering between the datasets passed in the argument list.
Expand Down Expand Up @@ -2247,7 +2246,6 @@ def zip(self, other: "Dataset") -> "Dataset":
logical_plan = LogicalPlan(op)
return Dataset(plan, self._epoch, self._lazy, logical_plan)

@ConsumptionAPI
def limit(self, limit: int) -> "Dataset":
"""Truncate the dataset to the first ``limit`` rows.
Expand Down

0 comments on commit 0f07950

Please sign in to comment.