From dc07ab974a63d5c794e09b35792f592c9d1d287c Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Sat, 8 Feb 2025 22:13:10 +0530 Subject: [PATCH] DOC: fix ES01 for pandas.array --- pandas/core/construction.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandas/core/construction.py b/pandas/core/construction.py index 50088804e0245..ada492787a179 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -81,6 +81,10 @@ def array( """ Create an array. + This method constructs an array using pandas extension types when possible. + If `dtype` is specified, it determines the type of array returned. Otherwise, + pandas attempts to infer the appropriate dtype based on `data`. + Parameters ---------- data : Sequence of objects