Skip to content

Commit

Permalink
Fixed doctest spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
edwjames committed Apr 1, 2024
1 parent 0084b12 commit 32d5cb5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions py-polars/polars/expr/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,15 +466,15 @@ def get(self, index: int | IntoExprColumn, *, null_on_oob: bool = True) -> Expr:
... )
>>> df.with_columns(get=pl.col("arr").arr.get("idx", null_on_oob=True))
shape: (3, 3)
┌───────────────┬─────┬─────
│ arr ┆ idx ┆ get
│ --- ┆ --- ┆ ---
│ array[i32, 3] ┆ i32 ┆ i32
╞═══════════════╪═════╪═════
│ [1, 2, 3] ┆ 1 ┆ 2
│ [4, 5, 6] ┆ -2 ┆ 5
│ [7, 8, 9] ┆ 0 ┆ 7
└───────────────┴─────┴─────
┌───────────────┬─────┬─────┐
│ arr ┆ idx ┆ get │
│ --- ┆ --- ┆ --- │
│ array[i32, 3] ┆ i32 ┆ i32 │
╞═══════════════╪═════╪═════╡
│ [1, 2, 3] ┆ 1 ┆ 2 │
│ [4, 5, 6] ┆ -2 ┆ 5 │
│ [7, 8, 9] ┆ 0 ┆ 7 │
└───────────────┴─────┴─────┘
"""
index = parse_as_expression(index)
Expand Down

0 comments on commit 32d5cb5

Please sign in to comment.