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 3714ff5 commit 33fceb1Copy full SHA for 33fceb1
pandas/tests/extension/test_arrow.py
@@ -3451,7 +3451,9 @@ def test_string_to_datetime_parsing_cast():
3451
)
3452
def test_interpolate_not_numeric(data):
3453
if not data.dtype._is_numeric:
3454
- with pytest.raises(ValueError, match="Values must be numeric."):
+ ser = pd.Series(data)
3455
+ msg = re.escape(f"Cannot interpolate with {ser.dtype} dtype")
3456
+ with pytest.raises(TypeError, match=msg):
3457
pd.Series(data).interpolate()
3458
3459
0 commit comments