-
-
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
DEPR offsets: rename 'Q' to 'QE' #55553
DEPR offsets: rename 'Q' to 'QE' #55553
Conversation
…ERIOD_FREQSTR, fix tests
@MarcoGorelli, could you please take a look at this PR? It's a follow-up of PR: "DEPR offsets: rename 'M' to 'ME'". |
|
||
rng = date_range("01-Jan-2012", periods=8, freq=freq) | ||
prng = rng.to_period() | ||
with tm.assert_produces_warning(UserWarning, match=msg): |
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.
Looks like I'd missed this last time, but this should be FutureWarning, not UserWarning #52064 (review)
could we address that in a separate PR please?
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.
thank you, I corrected Warning class and made the separate PR #55636
def test_my(self): | ||
Period("2017Q1", freq="Q") |
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.
temporary test name?😉
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.
looks good, just this part isn't totally clear to me https://github.com/pandas-dev/pandas/pull/55553/files#r1367138011
doc/source/whatsnew/v2.2.0.rst
Outdated
Deprecate alias ``Q`` in favour of ``QE`` for offsets | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
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.
This looks very similar to the previous section, perhaps we can combine them?
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.
yes, I agree. I combined these two sections together.
pandas/io/json/_table_schema.py
Outdated
# GH#9586 rename frequency M to ME for offsets | ||
field["freq"] = freq_to_period_freqstr(1, field["freq"]) |
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.
left over from #55581 (review)? should we wait for that one to be resolved first?
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.
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.
cool, should be good on green!
looks like there's some test failures
|
I added parameters |
thanks @natmokval ! |
The PRs pandas-dev#55792 (Y), pandas-dev#52064 (Q), and pandas-dev#55553 (M) deprecated the single letter version of the aliases in favour of the -end version of them. This table was missed as part of that work.
The PRs pandas-dev#55792 (Y), pandas-dev#52064 (Q), and pandas-dev#55553 (M) deprecated the single letter version of the aliases in favour of the -end version of them. Add a note to the offset table about deprecations.
xref #9586, #52064
Deprecated the alias denoting quarter end frequency
"Q"
for offsets in favour of"QE"
.doc/source/whatsnew/v2.2.0.rst