File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -3451,7 +3451,7 @@ def test_string_to_datetime_parsing_cast():
3451
3451
)
3452
3452
def test_interpolate_not_numeric (data ):
3453
3453
if not data .dtype ._is_numeric :
3454
- with pytest .raises (ValueError , match = "Values must be numeric. " ):
3454
+ with pytest .raises (NotImplementedError , match = "interpolate is not implemented " ):
3455
3455
pd .Series (data ).interpolate ()
3456
3456
3457
3457
Original file line number Diff line number Diff line change @@ -767,6 +767,7 @@ def test_astype_dt64_to_string(
767
767
assert item is pd .NA
768
768
769
769
# Check that Series/DataFrame.astype matches DatetimeArray.astype
770
+ result = obj .astype ("str" )
770
771
expected = frame_or_series (dta .astype ("str" ))
771
772
tm .assert_equal (result , expected )
772
773
You can’t perform that action at this time.
0 commit comments