Skip to content

Commit b53cfe0

Browse files
docstrings
1 parent 15efb2e commit b53cfe0

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

pandas/core/arrays/string_.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class StringDtype(ExtensionDtype):
8080
Examples
8181
--------
8282
>>> pd.StringDtype()
83-
StringDtype
83+
string[python]
8484
"""
8585

8686
#: StringDtype.na_value uses pandas.NA
@@ -263,7 +263,7 @@ class StringArray(PandasArray):
263263
>>> pd.array(['This is', 'some text', None, 'data.'], dtype="string")
264264
<StringArray>
265265
['This is', 'some text', <NA>, 'data.']
266-
Length: 4, dtype: string
266+
Length: 4, dtype: string[python]
267267
268268
Unlike arrays instantiated with ``dtype="object"``, ``StringArray``
269269
will convert the values to strings.
@@ -275,7 +275,7 @@ class StringArray(PandasArray):
275275
>>> pd.array(['1', 1], dtype="string")
276276
<StringArray>
277277
['1', '1']
278-
Length: 2, dtype: string
278+
Length: 2, dtype: string[python]
279279
280280
However, instantiating StringArrays directly with non-strings will raise an error.
281281

pandas/core/arrays/string_arrow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class ArrowStringArray(OpsMixin, ExtensionArray, ObjectStringArrayMixin):
117117
118118
Examples
119119
--------
120-
>>> pd.array(['This is', 'some text', None, 'data.'], dtype="string[arrow]")
120+
>>> pd.array(['This is', 'some text', None, 'data.'], dtype="string[pyarrow]")
121121
<ArrowStringArray>
122122
['This is', 'some text', <NA>, 'data.']
123123
Length: 4, dtype: string[pyarrow]

pandas/core/generic.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6134,12 +6134,12 @@ def convert_dtypes(
61346134
2 3 z <NA> <NA> 20 200.0
61356135
61366136
>>> dfn.dtypes
6137-
a Int32
6138-
b string
6139-
c boolean
6140-
d string
6141-
e Int64
6142-
f Float64
6137+
a Int32
6138+
b string[python]
6139+
c boolean
6140+
d string[python]
6141+
e Int64
6142+
f Float64
61436143
dtype: object
61446144
61456145
Start with a Series of strings and missing data represented by ``np.nan``.
@@ -6157,7 +6157,7 @@ def convert_dtypes(
61576157
0 a
61586158
1 b
61596159
2 <NA>
6160-
dtype: string
6160+
dtype: string[python]
61616161
"""
61626162
if self.ndim == 1:
61636163
return self._convert_dtypes(

0 commit comments

Comments
 (0)