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.
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.
thank you, I corrected Warning class and made the separate PR #55636
| def test_my(self): | ||
| Period("2017Q1", freq="Q") |
MarcoGorelli
left a comment
There was a problem hiding this comment.
looks good, just this part isn't totally clear to me https://github.com/pandas-dev/pandas/pull/55553/files#r1367138011
| Deprecate alias ``Q`` in favour of ``QE`` for offsets | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
There was a problem hiding this comment.
This looks very similar to the previous section, perhaps we can combine them?
There was a problem hiding this comment.
yes, I agree. I combined these two sections together.
| # 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.
left over from #55581 (review)? should we wait for that one to be resolved first?
MarcoGorelli
left a comment
There was a problem hiding this comment.
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