-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
ENH: Added max_gap keyword for series.interpolate #25141
Closed
Closed
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
5e4b2ee
Added maxgap keyword for series.interpolate
cchwala b752602
minor pep8 fixes
cchwala 839b11a
fixed parameter order
cchwala fcdc4e4
Merge remote-tracking branch 'upstream/master' into interpolate_maxgap
cchwala 20b70b7
Merge remote-tracking branch 'upstream/master' into interpolate_maxgap
cchwala 3cb371e
Changed parameter name from `maxgap` to `max_gap`
cchwala 8c6ff7a
Moved code to derive indices of "NaNs to preserve" in separate function
cchwala 4aaf8dc
Tests for errors extended and moved to own function
cchwala 1f0406f
added blank lines in docstring as requested
cchwala eaacefd
Added test which fails for method='pad'
cchwala f274d16
Merge remote-tracking branch 'upstream/master' into interpolate_maxgap
cchwala c72acdb
manually add black code formating
cchwala e0aee3a
First WIP but working version to fix issue with `pad` and `limit_area`
cchwala af15eaf
fix: do not decide based on dimension but on crucial kwargs which int…
cchwala 12d2e5b
some clean up
cchwala c25d1f8
Make it work with NaT and test for that
cchwala 4d40722
Added comment on why two interpolate fill functions are needed
cchwala 255518e
fix typo
cchwala 2015e84
Added tests for DataFrames
cchwala 4d7b0f1
Added failing test for https://github.com/pandas-dev/pandas/issues/12918
cchwala cbf7388
Now using 1D pad and backfill functions in `interpolate_1d_fill()`
cchwala 5128b9d
Merge remote-tracking branch 'upstream/master' into interpolate_maxgap
cchwala 3c55e1e
Additional required adjustments after merge with upstream/master
cchwala f9e4044
Merge remote-tracking branch 'upstream/master' into interpolate_maxgap
cchwala d1bbcd6
Removed test for bug with pad which should be solved in a separate PR
cchwala 21b3091
removed trailing whitespaces
cchwala c96c604
fixed formating for black and flake8
cchwala bd84fc9
updated docstring for interpolat with max_gap
cchwala 908ffe5
added max_gap info and example to documentation
cchwala 380ef7c
added info to whatsnew file
cchwala 5a1718a
flake8
cchwala 16755bd
update docs with info on limit_direction and method pad
cchwala b58d721
better test for https://github.com/pandas-dev/pandas/issues/26796
cchwala aa58ffa
typo, black, flake8
cchwala ae16124
update to doc
cchwala 28b442c
fix wrong behavior when combining max_gap and limit_direction
cchwala File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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 file contains 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 file contains 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 file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use f-strings for this and the one on L 7140
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay