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.
_cubicspline_interpolate
1 parent 3d75afd commit 8595ddaCopy full SHA for 8595dda
pandas/core/missing.py
@@ -45,8 +45,12 @@
45
)
46
47
if TYPE_CHECKING:
48
+ from typing import TypeAlias
49
+
50
from pandas import Index
51
52
+ _CubicBC: TypeAlias = Literal["not-a-knot", "clamped", "natural", "periodic"]
53
54
55
def check_value_size(value, mask: npt.NDArray[np.bool_], length: int):
56
"""
@@ -700,9 +704,9 @@ def _cubicspline_interpolate(
700
704
yi: np.ndarray,
701
705
x: np.ndarray,
702
706
axis: AxisInt = 0,
703
- bc_type: str | tuple[Any, Any] = "not-a-knot",
- extrapolate=None,
-):
707
+ bc_type: _CubicBC | tuple[Any, Any] = "not-a-knot",
708
+ extrapolate: Literal["periodic"] | bool | None = None,
709
+) -> np.ndarray:
710
711
Convenience function for cubic spline data interpolator.
712
0 commit comments