We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af0bf4d commit c966562Copy full SHA for c966562
pandas/core/arrays/string_.py
@@ -164,14 +164,9 @@ class StringArray(PandasArray):
164
['1', '1']
165
Length: 2, dtype: string
166
167
- On the other hand, instantiating StringArrays directly with non-strings will
168
- raise an error:
+ However, instantiating StringArrays directly with non-strings will raise an error.
169
170
- >>> pd.arrays.StringArray(np.array([1, 2]))
171
- Traceback (most recent call last)
172
- ValueError: StringArray requires a sequence of strings or pandas.NA
173
-
174
- For comparison methods, this returns a :class:`pandas.BooleanArray`
+ For comparison methods, `StringArray` returns a :class:`pandas.BooleanArray`:
175
176
>>> pd.array(["a", None, "c"], dtype="string") == "a"
177
<BooleanArray>
0 commit comments