We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af1585d commit 0f92514Copy full SHA for 0f92514
pandas/tests/series/test_operators.py
@@ -878,6 +878,17 @@ def test_divmod(self):
878
assert_series_equal(result[0], expected[0])
879
assert_series_equal(result[1], expected[1])
880
881
+ @pytest.mark.parametrize("index", [None, range(9)])
882
+ def test_series_integer_mod(self, index):
883
+ # see gh-24396
884
+ s1 = Series(range(1, 10))
885
+ s2 = Series("foo", index=index)
886
+
887
+ msg = "not all arguments converted during string formatting"
888
889
+ with pytest.raises(TypeError, match=msg):
890
+ s2 % s1
891
892
893
class TestSeriesUnaryOps:
894
# __neg__, __pos__, __inv__
0 commit comments