From 17c2483320df09d3576025275a3c79a774ff94aa Mon Sep 17 00:00:00 2001 From: petrosbar <24761419+petrosbar@users.noreply.github.com> Date: Thu, 16 Jan 2025 12:27:41 +0200 Subject: [PATCH] docs(python): Add missing `shape` param to `Array` docstring --- py-polars/polars/datatypes/classes.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/py-polars/polars/datatypes/classes.py b/py-polars/polars/datatypes/classes.py index eff08a5eb0c4..9a074739826b 100644 --- a/py-polars/polars/datatypes/classes.py +++ b/py-polars/polars/datatypes/classes.py @@ -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))