Skip to content

Commit 3d75afd

Browse files
committed
TYP: avoid calling Akima1DInterpolator instances with unsupported der type
1 parent 3e1d6d5 commit 3d75afd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pandas/core/missing.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ def _akima_interpolate(
652652
xi: np.ndarray,
653653
yi: np.ndarray,
654654
x: np.ndarray,
655-
der: int | list[int] | None = 0,
655+
der: int = 0,
656656
axis: AxisInt = 0,
657657
):
658658
"""
@@ -673,10 +673,8 @@ def _akima_interpolate(
673673
x : np.ndarray
674674
Of length M.
675675
der : int, optional
676-
How many derivatives to extract; None for all potentially
677-
nonzero derivatives (that is a number equal to the number
678-
of points), or a list of derivatives to extract. This number
679-
includes the function value as 0th derivative.
676+
How many derivatives to extract. This number includes the function
677+
value as 0th derivative.
680678
axis : int, optional
681679
Axis in the yi array corresponding to the x-coordinate values.
682680

0 commit comments

Comments
 (0)