Skip to content

Commit f196319

Browse files
authored
BUG: interpolate raising wrong error for ea (#55347)
1 parent 7df4211 commit f196319

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

doc/source/whatsnew/v2.1.2.rst

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Bug fixes
2424
~~~~~~~~~
2525
- Fixed bug in :meth:`Categorical.equals` if other has arrow backed string dtype (:issue:`55364`)
2626
- Fixed bug in :meth:`DataFrame.idxmin` and :meth:`DataFrame.idxmax` raising for arrow dtypes (:issue:`55368`)
27+
- Fixed bug in :meth:`DataFrame.interpolate` raising incorrect error message (:issue:`55347`)
2728
- Fixed bug in :meth:`DataFrame.resample` not respecting ``closed`` and ``label`` arguments for :class:`~pandas.tseries.offsets.BusinessDay` (:issue:`55282`)
2829
- Fixed bug in :meth:`DataFrame.resample` where bin edges were not correct for :class:`~pandas.tseries.offsets.BusinessDay` (:issue:`55281`)
2930
- Silence ``Period[B]`` warnings introduced by :issue:`53446` during normal plotting activity (:issue:`55138`)

pandas/core/arrays/base.py

-1
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,6 @@ def interpolate(
893893
limit,
894894
limit_direction,
895895
limit_area,
896-
fill_value,
897896
copy: bool,
898897
**kwargs,
899898
) -> Self:

pandas/tests/frame/methods/test_interpolate.py

+6
Original file line numberDiff line numberDiff line change
@@ -497,3 +497,9 @@ def test_interpolate_empty_df(self):
497497
result = df.interpolate(inplace=True)
498498
assert result is None
499499
tm.assert_frame_equal(df, expected)
500+
501+
def test_interpolate_ea_raise(self):
502+
# GH#55347
503+
df = DataFrame({"a": [1, None, 2]}, dtype="Int64")
504+
with pytest.raises(NotImplementedError, match="does not implement"):
505+
df.interpolate()

0 commit comments

Comments
 (0)