Skip to content

REF: move interpolate validation to core.missing #53580

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 12, 2023

Conversation

jbrockmendel
Copy link
Member

Some cleanup found while working towards #50950.

@@ -225,6 +227,56 @@ def find_valid_index(how: str, is_valid: npt.NDArray[np.bool_]) -> int | None:
return idxpos # type: ignore[return-value]


def infer_limit_direction(limit_direction, method):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we type this function?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doing so caused some trouble in part bc the NDFrame.interpolate annotation is inaccurate. ive got a interpolate-cleanup branch that im hoping improves the situation a bit, but the real solution is #53607

@mroeschke mroeschke added the Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate label Jun 12, 2023
@mroeschke mroeschke added this to the 2.1 milestone Jun 12, 2023
@mroeschke mroeschke merged commit 7e66493 into pandas-dev:main Jun 12, 2023
@mroeschke
Copy link
Member

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the ref-ea-interp branch June 12, 2023 18:47
Daquisu pushed a commit to Daquisu/pandas that referenced this pull request Jul 8, 2023
* REF: move interpolate validation to core.missing

* lint fixup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants