File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -184,9 +184,9 @@ pandas options or specify the dtype using ``dtype='string[pyarrow]'``
184
184
185
185
The ``'string[pyarrow]' `` extension type solves several issues with NumPy backed arrays:
186
186
187
- 1.
188
- 2.
189
- 3.
187
+ 1.
188
+ 2.
189
+ 3.
190
190
191
191
192
192
.. ipython :: python
Original file line number Diff line number Diff line change @@ -1157,8 +1157,9 @@ def object_dtype(request):
1157
1157
params = [
1158
1158
"object" ,
1159
1159
"string" ,
1160
+ "string[python]" ,
1160
1161
pytest .param (
1161
- "arrow_string " , marks = td .skip_if_no ("pyarrow" , min_version = "1.0.0" )
1162
+ "string[pyarrow] " , marks = td .skip_if_no ("pyarrow" , min_version = "1.0.0" )
1162
1163
),
1163
1164
]
1164
1165
)
@@ -1167,10 +1168,9 @@ def any_string_dtype(request):
1167
1168
Parametrized fixture for string dtypes.
1168
1169
* 'object'
1169
1170
* 'string'
1170
- * 'arrow_string'
1171
+ * 'string[python]'
1172
+ * 'string[pyarrow]'
1171
1173
"""
1172
- from pandas .core .arrays .string_arrow import ArrowStringDtype # noqa: F401
1173
-
1174
1174
return request .param
1175
1175
1176
1176
Original file line number Diff line number Diff line change @@ -49,15 +49,14 @@ def test_astype_str(self, data):
49
49
"nullable_string_dtype" ,
50
50
[
51
51
"string" ,
52
+ "string[python]" ,
52
53
pytest .param (
53
- "arrow_string " , marks = td .skip_if_no ("pyarrow" , min_version = "1.0.0" )
54
+ "string[pyarrow] " , marks = td .skip_if_no ("pyarrow" , min_version = "1.0.0" )
54
55
),
55
56
],
56
57
)
57
58
def test_astype_string (self , data , nullable_string_dtype ):
58
59
# GH-33465
59
- from pandas .core .arrays .string_arrow import ArrowStringDtype # noqa: F401
60
-
61
60
result = pd .Series (data [:5 ]).astype (nullable_string_dtype )
62
61
expected = pd .Series ([str (x ) for x in data [:5 ]], dtype = nullable_string_dtype )
63
62
self .assert_series_equal (result , expected )
You can’t perform that action at this time.
0 commit comments