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.
1 parent 3e968fc commit 556a3cfCopy full SHA for 556a3cf
pandas/core/missing.py
@@ -288,10 +288,7 @@ def interpolate_1d(
288
289
290
def _derive_indices_of_nans_to_preserve(
291
- yvalues: ArrayLike,
292
- limit: int,
293
- limit_area: str,
294
- limit_direction: str,
+ yvalues: ArrayLike, limit: int, limit_area: str, limit_direction: str
295
):
296
"""
297
Derive the indices of NaNs that shall be preserved after interpolation
@@ -544,8 +541,6 @@ def interpolate_1d_fill(
544
541
orig_values = values
545
542
546
543
yvalues = values
547
- invalid = isna(yvalues)
548
- valid = ~invalid
549
550
if values.ndim > 1:
551
raise AssertionError("This only works with 1D data.")
0 commit comments