-
-
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
Fix/time series interpolation is wrong 21351 #56515
Merged
mroeschke
merged 45 commits into
pandas-dev:main
from
cbpygit:fix/time-series-interpolation-is-wrong-21351
Apr 24, 2024
Merged
Changes from 31 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
ff6d12f
fix: Fixes wrong doctest output in `pandas.core.resample.Resampler.in…
cbpygit 1593af0
Resolved merge conflicts
cbpygit db68c2d
fix: Fixes wrong test case assumption for interpolation
cbpygit dd8b8d3
fix: Make sure frequency indexes are preserved with new interpolation…
cbpygit a04a3a2
fix: Fixes new-style up-sampling interpolation for MultiIndexes resul…
cbpygit efbba10
fix: Fixes wrong test case assumption when using linear interpolation…
cbpygit 0294464
fix: Fixes wrong test case assumption when using linear interpolation…
cbpygit 537f8bf
fix: Adds test skips for interpolation methods that require scipy if …
cbpygit 901701c
Merge branch 'main' into fix/time-series-interpolation-is-wrong-21351
cbpygit 4f78c75
fix: Makes sure keyword arguments "downcast" is not passed to scipy i…
cbpygit a5bcd45
fix: Adjusted expected warning type in `test_groupby_resample_interpo…
cbpygit 7d4b4ce
fix: Fixes failing interpolation on groupby if the index has `name`=N…
cbpygit dbae717
Merge branch 'main' into fix/time-series-interpolation-is-wrong-21351
cbpygit 05be840
Merge branch 'main' into fix/time-series-interpolation-is-wrong-21351
cbpygit 0912249
Trigger Actions
cbpygit 49a7c4c
Merge remote-tracking branch 'origin/fix/time-series-interpolation-is…
cbpygit a5a7299
Merge branch 'main' into fix/time-series-interpolation-is-wrong-21351
cbpygit 6a6fa88
Merge branch 'main' into fix/time-series-interpolation-is-wrong-21351
cbpygit 4ebed74
Merge branch 'main' into fix/time-series-interpolation-is-wrong-21351
MarcoGorelli 0ee5b8d
feat: Raise error on attempt to interpolate a MultiIndex data frame, …
cbpygit b2bc373
Merge branch 'main' into fix/time-series-interpolation-is-wrong-21351
cbpygit 6109102
Merge branch 'main' into fix/time-series-interpolation-is-wrong-21351
cbpygit d6af64a
Apply suggestions from code review
cbpygit 2a86a27
refactor: Adjusted error type assertion in test case
cbpygit 9c90e23
refactor: Removed unused parametrization definitions and switched to …
cbpygit 4b2f3dc
fix: Adds forgotten "@" before pytest.mark.parametrize
cbpygit d11c162
Merge branch 'main' into fix/time-series-interpolation-is-wrong-21351
cbpygit 789c511
refactor: Apply suggestions from code review
cbpygit 4f6d102
refactor: Switched to ficture params syntax for test case parametriza…
cbpygit c0547b5
Merge branch 'main' into fix/time-series-interpolation-is-wrong-21351
cbpygit d6382f8
Merge branch 'main' into fix/time-series-interpolation-is-wrong-21351
cbpygit 4e9a616
Update pandas/tests/resample/test_time_grouper.py
cbpygit c655bf1
Update pandas/tests/resample/test_base.py
cbpygit e916da9
Merge branch 'main' into fix/time-series-interpolation-is-wrong-21351
cbpygit eaa7e07
refactor: Fixes too long line
cbpygit 649bfa2
tests: Fixes test that fails due to unimportant index name comparison
cbpygit 4cfbbf1
docs: Added entry in whatsnew
cbpygit 76794e3
Empty-Commit
cbpygit 6ad9b26
Merge branch 'main' into fix/time-series-interpolation-is-wrong-21351
cbpygit 6555141
Empty-Commit
cbpygit 48850cc
Empty-Commit
cbpygit 8eea71c
Merge branch 'main' into fix/time-series-interpolation-is-wrong-21351
cbpygit 7f957cf
docs: Sorted whatsnew
cbpygit 51e95e0
Merge remote-tracking branch 'origin/fix/time-series-interpolation-is…
cbpygit 12bdd90
docs: Adjusted bug fix note and moved it to the right section
cbpygit 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
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
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.
in the opposite case where the difference is empty, i think a the sort_index and
.loc
below (which makes a copy) can be avoidedThere 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.
@jbrockmendel Can you please clarify? "in the opposite case where the difference is empty" --> then
missing_data_points_index
will be empty, so its length will be zero. In that case, the if-expression evaluates toFalse
, so that the loc/sort is indeed not executed. Maybe I am overlooking something.