From 6309d04d0397953732faa11a8ab5d6104a913b82 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Sun, 9 Feb 2025 00:25:29 +0530 Subject: [PATCH] DOC: fix ES01 for pandas.array (#60889) --- 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