Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturNiederfahrenhorst committed Oct 22, 2024
1 parent e80f2e0 commit 54660f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/ray/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,7 @@ def add_column(
>>> import ray
>>> import pyarrow as pa
>>> import pyarrow.compute as pc
>>> ds = ray.data.range(100)
>>> ds.schema()
Column Type
Expand All @@ -721,7 +722,7 @@ def add_column(
Add a new column equal to ``id * 2``.
>>> ds.add_column("new_id", lambda x: pa.compute.multiply(x["id"], 2)).schema()
>>> ds.add_column("new_id", lambda x: pc.multiply(x["id"], 2)).schema()
Column Type
------ ----
id int64
Expand Down

0 comments on commit 54660f3

Please sign in to comment.