-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
[WIP] fork of #31048 for CI testing DO NOT MERGE #34749
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
Closed
simonjayhawkins
wants to merge
30
commits into
pandas-dev:master
from
simonjayhawkins:refactor-interpolate-to-not-use-fillna
Closed
[WIP] fork of #31048 for CI testing DO NOT MERGE #34749
simonjayhawkins
wants to merge
30
commits into
pandas-dev:master
from
simonjayhawkins:refactor-interpolate-to-not-use-fillna
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This test currently only test `limit_area`. For `limit_direction` the implementation should later raise an error, because `pad` and `bfill` both already define a direction. But let's now first do the implementation of the `limit_area` for `pad` and `bfill`.
Since methods `pad` and `bfill` in `blocks.interpolate` end up using `missing.interpolate_2d` which can not (easily) be extended to support `limit_area`, I introduce the new function `missing.interpolate_1d_fill`. It is a modified copy of `interpolate_2d` but only works for 1d data and uses newly introduced function `_derive_indices_of_nans_to_preserve`, which is now also used in `missing.interpolate_1d`. It works the same way as the 1D-interpolation functions which are based on scipy-interpolation which are applied via np.apply_along_axis.
…values` also was changed via appliying `func`
…e used Test for all forbidden combos of `pad` and `backfill` is included
…d `limit_direction`
…ments Test on my local machine are not affected by removing the unncessery arguments `valid` and `invalid`, which are now derived within the function.
…imit_area_and_limit_direction_with_pad Manually resolved conflicts: * doc/source/whatsnew/v1.1.0.rst: Just a conflicting line * pandas/tests/series/test_missing.py: All test for interpolation have been moved to a new file pandas/tests/series/methods/test_interpolate.py I accepted all changes from upstream, which removed my tests from test_missing.py and manually added my test to the new file methods/test_interpolate.py
Co-Authored-By: William Ayd <[email protected]>
…imit_area_and_limit_direction_with_pad
…imit_area_and_limit_direction_with_pad
5 tasks
…ate-to-not-use-fillna
…ate-to-not-use-fillna
cchwala
added a commit
to cchwala/pandas
that referenced
this pull request
Aug 26, 2020
provided by pandas-dev#34749 Test are green now
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fork of #31048 for CI testing