-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ENH: add 'origin' and 'offset' arguments to 'resample' and 'pd.Grouper' #31809
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
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
3aa2ae3
ENH: add 'origin and 'offset' arguments to 'resample' and 'pd.Grouper'
hasB4K c16733b
ENH: change how the warning are handled for base and loffset
hasB4K 9b000d7
TST: move deprecated tests of loffset and base into test_deprecated
hasB4K 6c03bf4
ENH: check if origin for resample is timezone aware when needed
hasB4K 532cdfe
DOC: add 'Use or to adjust the start of the bins' section into time…
hasB4K f158cdb
DOC: simplify doc for What's new and add a comment on the deprecation…
hasB4K 78ed64c
DOC: Add example for origin and offset in resample and in pd.Grouper
hasB4K 77f507d
CLN: review clean part one
hasB4K 426d8c7
CLN: review clean part two
hasB4K bad3ed6
DOC: update documentation to be more clearer (review part 3)
hasB4K 687429e
CLN: review fix - move warning of 'loffset' and 'base' into pd.Grouper
hasB4K 7d4de49
CLN: fix lint issue with isort
hasB4K b83c5bf
Update pandas/core/generic.py
hasB4K 3e24d53
CLN: add TimestampCompatibleTypes and TimedeltaCompatibleTypes in pan…
hasB4K c2ee661
CLN: fix lint issue with isort
hasB4K a6e94c0
ENH: support 'epoch', 'start_day' and 'start' for origin
hasB4K 53802e5
DOC: add doc for origin that uses 'epoch', 'start' or 'start_day'
hasB4K 3fc2bf6
TST: add test for origin that uses 'epoch', 'start' or 'start_day'
hasB4K 4ad979a
BUG: fix a timezone bug between origin and index on df.resample
hasB4K 343a30a
DOC: change doc after review
hasB4K efb572e
CLN: change typing for TimestampConvertibleTypes
hasB4K fcdde91
CLN: add nice message for ValueError of 'origin' and 'offset' in resa…
hasB4K 1fec946
BUG: fix a bug when resampling in DST context
hasB4K 5695ffb
TST: fix deprecation test
hasB4K de6b477
TST: using pytz instead of datetutil in test of test_resample_origin_…
hasB4K 05ddd9b
CLN: remove unused import
hasB4K 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 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 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 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 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 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
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.
Uh oh!
There was an error while loading. Please reload this page.