-
- Notifications
You must be signed in to change notification settings - Fork 19.3k
CLN: replace unnecessary freq_to_period_freqstr with PeriodDtype constructor #56550
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
mroeschke merged 18 commits into pandas-dev:main from natmokval:depr-correct-rename-M-to-ME-II Feb 28, 2024
Merged
Changes from 1 commit
Commits
Show all changes
18 commits Select commit Hold shift + click to select a range
bc53d16 replace freq_to_period_freqstr() with PeriodDtype(freq)._freqstr in _…
natmokval 2a3d992 Merge branch 'main' into depr-correct-rename-M-to-ME-II
natmokval 42fa6c4 Merge branch 'main' into depr-correct-rename-M-to-ME-II
natmokval 4905c42 Merge branch 'main' into depr-correct-rename-M-to-ME-II
natmokval afcffbb replace freq_to_period_freqstr with PeriodDtype()._freqstr except in …
natmokval 6f9d974 fix pre-commit errors
natmokval 5a4bdc5 Merge branch 'main' into depr-correct-rename-M-to-ME-II
natmokval e2c94f6 resolve conflict
natmokval 602a71b resolve conflict
natmokval b529965 remove freq_to_period_freqstr from _maybe_coerce_freq and from tests
natmokval daf707b remove freq_to_period_freqstr from period.pyx
natmokval 1b81967 Merge branch 'main' into depr-correct-rename-M-to-ME-II
natmokval b74807d correct raise_on_incompatible
natmokval 751ab49 correct raise_on_incompatible again
natmokval 48292cd replace warnings.simplefilter with warnings.filterwarnings in raise_o…
natmokval ec25560 remove regex splitting from test_line_plot_datetime_frame
natmokval a057a63 Merge branch 'main' into depr-correct-rename-M-to-ME-II
natmokval 2131579 remove regex splitting from test_line_plot_period_mlt_frame
natmokval 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
remove freq_to_period_freqstr from period.pyx
- Loading branch information
commit daf707b0badc029cac32101f45db1b29bdbeb191
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
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.
why do we need the if-else branch for
otherbut not forself.freq?Uh oh!
There was an error while loading. Please reload this page.
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.
self.freqalways has attribute"_period_dtype_code",burothersometimes doesn't.For example in many tests in
pandas/tests/arithmetic/test_period.py( e.g.test_pi_add_sub_timedeltalike_freq_mismatch_monthly) other is equalpd.offsets.YearBegin(2)