We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89ef931 commit 053dae4Copy full SHA for 053dae4
pandas/core/arrays/string_.py
@@ -166,6 +166,7 @@ class StringArray(PandasArray):
166
167
On the other hand, instantiating StringArrays directly with non-strings will
168
raise an error:
169
+
170
>>> pd.arrays.StringArray(np.array([1, 2]))
171
ValueError: StringArray requires a sequence of strings or pandas.NA
172
pandas/tests/extension/decimal/array.py
@@ -131,8 +131,6 @@ def copy(self):
131
return type(self)(self._data.copy())
132
133
def astype(self, dtype, copy=True):
134
- from pandas.core.arrays.string_ import StringDtype
135
-
136
dtype = pandas_dtype(dtype)
137
if isinstance(dtype, type(self.dtype)):
138
return type(self)(self._data, context=dtype.context)
0 commit comments