Skip to content

Commit 11bc51d

Browse files
committed
Added test to confirm fix for pandas-dev#28658
adds a test to check for regressions later.
1 parent 02675e3 commit 11bc51d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pandas/tests/series/test_arithmetic.py

+8
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ def test_add_series_with_period_index(self):
6666
with pytest.raises(IncompatibleFrequency, match=msg):
6767
ts + ts.asfreq("D", how="end")
6868

69+
def test_string_addition(self):
70+
# GH28658
71+
a = Series(["hello", "world"])
72+
73+
result = a + "!"
74+
expected = Series(["hello!", "world!"])
75+
assert_series_equal(result, expected)
76+
6977

7078
# ------------------------------------------------------------------
7179
# Comparisons

0 commit comments

Comments
 (0)