We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88ea9cb commit 428ba13Copy full SHA for 428ba13
pandas/tests/series/methods/test_round.py
@@ -72,3 +72,10 @@ def test_round_ea_boolean(self):
72
tm.assert_series_equal(result, expected)
73
result.iloc[0] = False
74
tm.assert_series_equal(ser, expected)
75
+
76
+ def test_round_dtype_object(self):
77
+ ser = Series([0.2], dtype="object")
78
+ msg = "Expected numeric dtype, got object instead."
79
+ with pytest.raises(TypeError, match=msg):
80
+ ser.round()
81
0 commit comments