Skip to content

Commit deb912e

Browse files
committed
Review (jreback)
1 parent b091d12 commit deb912e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

doc/source/whatsnew/v0.24.0.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ Backwards incompatible API changes
210210
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
211211

212212
- A newly constructed empty :class:`DataFrame` with integer as the ``dtype`` will now only be cast to ``float64`` if ``index`` is specified (:issue:`22858`)
213+
- :meth:`Series.str.cat` will now raise if `others` is a `set` (:issue:`23009`)
213214

214215
.. _whatsnew_0240.api_breaking.deps:
215216

@@ -976,7 +977,7 @@ Numeric
976977
Strings
977978
^^^^^^^
978979

979-
- Bug in :meth:`Series.str.cat` which falsely did not raise if `others` was a `set` (:issue:`23009`)
980+
-
980981
-
981982
-
982983

pandas/tests/test_strings.py

+2
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,12 @@ def test_str_cat_mixed_inputs(self, box):
302302
s.str.cat([u, [u, d]])
303303

304304
# forbidden input type: set
305+
# GH 23009
305306
with tm.assert_raises_regex(TypeError, rgx):
306307
s.str.cat(set(u))
307308

308309
# forbidden input type: set in list
310+
# GH 23009
309311
with tm.assert_raises_regex(TypeError, rgx):
310312
s.str.cat([u, set(u)])
311313

0 commit comments

Comments
 (0)