Skip to content

Commit 15efb2e

Browse files
post merge fix-up
1 parent 5d4eac1 commit 15efb2e

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

doc/source/whatsnew/v1.3.0.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ pandas options or specify the dtype using ``dtype='string[pyarrow]'``
184184

185185
The ``'string[pyarrow]'`` extension type solves several issues with NumPy backed arrays:
186186

187-
1.
188-
2.
189-
3.
187+
1.
188+
2.
189+
3.
190190

191191

192192
.. ipython:: python

pandas/conftest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,8 +1157,9 @@ def object_dtype(request):
11571157
params=[
11581158
"object",
11591159
"string",
1160+
"string[python]",
11601161
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")
11621163
),
11631164
]
11641165
)
@@ -1167,10 +1168,9 @@ def any_string_dtype(request):
11671168
Parametrized fixture for string dtypes.
11681169
* 'object'
11691170
* 'string'
1170-
* 'arrow_string'
1171+
* 'string[python]'
1172+
* 'string[pyarrow]'
11711173
"""
1172-
from pandas.core.arrays.string_arrow import ArrowStringDtype # noqa: F401
1173-
11741174
return request.param
11751175

11761176

pandas/tests/extension/base/casting.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,14 @@ def test_astype_str(self, data):
4949
"nullable_string_dtype",
5050
[
5151
"string",
52+
"string[python]",
5253
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")
5455
),
5556
],
5657
)
5758
def test_astype_string(self, data, nullable_string_dtype):
5859
# GH-33465
59-
from pandas.core.arrays.string_arrow import ArrowStringDtype # noqa: F401
60-
6160
result = pd.Series(data[:5]).astype(nullable_string_dtype)
6261
expected = pd.Series([str(x) for x in data[:5]], dtype=nullable_string_dtype)
6362
self.assert_series_equal(result, expected)

0 commit comments

Comments
 (0)