Skip to content

Commit

Permalink
docs(python): Add missing shape param to Array docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
petrosbar committed Jan 16, 2025
1 parent 73cb2a2 commit 17c2483
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions py-polars/polars/datatypes/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,9 +767,14 @@ class Array(NestedType):
----------
inner
The `DataType` of the values within each array.
shape
The shape of the arrays.
width
The length of the arrays.
.. deprecated:: 0.20.31
The `width` parameter for `Array` is deprecated. Use `shape` instead.
Examples
--------
>>> s = pl.Series("a", [[1, 2], [4, 3]], dtype=pl.Array(pl.Int64, 2))
Expand Down

0 comments on commit 17c2483

Please sign in to comment.