File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ Fixed regressions
26
26
27
27
Bug fixes
28
28
~~~~~~~~~
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 `)
30
30
31
31
.. ---------------------------------------------------------------------------
32
32
.. _whatsnew_231.other :
Original file line number Diff line number Diff line change @@ -300,6 +300,7 @@ def test_multi_columns_nan_empty():
300
300
301
301
302
302
def test_str_dtype ():
303
+ # https://github.com/pandas-dev/pandas/pull/61623
303
304
df = pd .DataFrame ({"a" : ["x" , "y" ]}, dtype = "str" )
304
305
result = df .explode (column = "a" )
305
306
assert result is not df
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ def test_explode_pyarrow_non_list_type(ignore_index):
178
178
179
179
180
180
def test_str_dtype ():
181
+ # https://github.com/pandas-dev/pandas/pull/61623
181
182
ser = pd .Series (["x" , "y" ], dtype = "str" )
182
183
result = ser .explode ()
183
184
assert result is not ser
You can’t perform that action at this time.
0 commit comments