-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DEPR: Deprecate use of strings denoting units with 'M', 'Y' or 'y' in pd.to_timedelta (36666) #36838
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
DEPR: Deprecate use of strings denoting units with 'M', 'Y' or 'y' in pd.to_timedelta (36666) #36838
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
de4fb4d
Throw warning when M,Y,m or y is used in an arg for pd.to_timedelta
avinashpancham 61ec5b6
Update docstring by removing old logic and adding depr notice
avinashpancham abb613e
Add whatsnew entry
avinashpancham 4ccf43d
Update wording in docs
avinashpancham 271f2fc
Place space at the end of string instead of at the beginning of next …
avinashpancham 7b11a92
Also catch month and year timedelta variations without a space
avinashpancham b39eadf
Add test for depr behavior
avinashpancham f56796a
Catch deprecated patterns with a regex to prevent false positives and…
avinashpancham ad38ad3
Add description to unittest
avinashpancham bc03065
Also find appearences of unambiguous timedelta values in containers
avinashpancham d491cce
Update test_unit_parser in test_timedelta.py
avinashpancham 76e6602
Move warnings code to timedeltas.pyx and update tests
avinashpancham cdc5821
Update code for failing tests
avinashpancham 5c471b3
Merge branch 'master' into GH36666
avinashpancham 02d642b
Remove empty line
avinashpancham 89af5bb
Update depr message
avinashpancham a5ef0c3
Merge branch 'master' into GH36666
avinashpancham 0bc1a89
Move warning location and update tests
avinashpancham 3682687
Merge remote-tracking branch 'upstream/master' into GH36666
avinashpancham 2abd0ed
Update parse_iso_format_string and tests that give warnings
avinashpancham 6f4e7ca
Merge remote-tracking branch 'upstream/master' into GH36666
avinashpancham 8701f26
Replace ipython directives with code-blocks in whatsnew v0.15.0
avinashpancham 783e039
Merge remote-tracking branch 'upstream/master' into GH36666
avinashpancham 0cc6dff
Update newly added test
avinashpancham 6a02d05
Merge remote-tracking branch 'upstream/master' into GH36666
avinashpancham 71f801e
Update test to prevent depr warning
avinashpancham e183f9b
Merge remote-tracking branch 'upstream/master' into GH36666
avinashpancham 2d8c9fe
Merge remote-tracking branch 'upstream/master' into GH36666
avinashpancham 1d2871b
Merge remote-tracking branch 'upstream/master' into GH36666
avinashpancham e01f75d
Revert the depr of lowercase m
avinashpancham 5277943
Revert more depr of m
avinashpancham 3b83aa0
Merge remote-tracking branch 'upstream/master' into GH36666
avinashpancham 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
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
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.