Skip to content

Commit 25655e2

Browse files
authored
Backport PR #55347 on branch 2.1.x (BUG: interpolate raising wrong error for ea) (#55382)
BUG: interpolate raising wrong error for ea (#55347) (cherry picked from commit f196319)
1 parent db8e3e8 commit 25655e2

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

doc/source/whatsnew/v2.1.2.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ Bug fixes
2424
- Fixed bug in :meth:`Categorical.equals` if other has arrow backed string dtype (:issue:`55364`)
2525
- Fixed bug in :meth:`DataFrame.__setitem__` not inferring string dtype for zero-dimensional array with ``infer_string=True`` (:issue:`55366`)
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:`Index.insert` raising when inserting ``None`` into :class:`Index` with ``dtype="string[pyarrow_numpy]"`` (:issue:`55365`)
2829
- Silence ``Period[B]`` warnings introduced by :issue:`53446` during normal plotting activity (:issue:`55138`)
30+
-
2931

3032
.. ---------------------------------------------------------------------------
3133
.. _whatsnew_212.other:

pandas/core/arrays/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,6 @@ def interpolate(
889889
limit,
890890
limit_direction,
891891
limit_area,
892-
fill_value,
893892
copy: bool,
894893
**kwargs,
895894
) -> Self:

pandas/tests/frame/methods/test_interpolate.py

Lines changed: 6 additions & 0 deletions
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)