Skip to content

Commit 703de84

Browse files
committed
GH#
1 parent 8175010 commit 703de84

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

doc/source/whatsnew/v2.3.1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Fixed regressions
2626

2727
Bug fixes
2828
~~~~~~~~~
29-
- Fixed bug in :meth:`DataFrame.explode` and :meth:`Series.explode` where methods would fail with ``dtype="str"`` (:issue:`???`)
29+
- Fixed bug in :meth:`DataFrame.explode` and :meth:`Series.explode` where methods would fail with ``dtype="str"`` (:issue:`61623`)
3030

3131
.. ---------------------------------------------------------------------------
3232
.. _whatsnew_231.other:

pandas/tests/frame/methods/test_explode.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ def test_multi_columns_nan_empty():
300300

301301

302302
def test_str_dtype():
303+
# https://github.com/pandas-dev/pandas/pull/61623
303304
df = pd.DataFrame({"a": ["x", "y"]}, dtype="str")
304305
result = df.explode(column="a")
305306
assert result is not df

pandas/tests/series/methods/test_explode.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ def test_explode_pyarrow_non_list_type(ignore_index):
178178

179179

180180
def test_str_dtype():
181+
# https://github.com/pandas-dev/pandas/pull/61623
181182
ser = pd.Series(["x", "y"], dtype="str")
182183
result = ser.explode()
183184
assert result is not ser

0 commit comments

Comments
 (0)