diff --git a/pandas/core/construction.py b/pandas/core/construction.py index 5868bdaa1225b..8ee8cfb0b8cb8 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -360,6 +360,8 @@ def array( # StringArray/ArrowStringArray depending on pd.options.mode.string_storage dtype = StringDtype() cls = dtype.construct_array_type() + if data.ndim != 1: + raise ValueError("NumpyExtensionArray must be 1-dimensional") return cls._from_sequence(data, dtype=dtype, copy=copy) elif data.dtype.kind in "iu":