-
-
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: rename offset alias ‘MS’ to ‘MB’ #56840
Comments
Might be too late but it would make the life of downstream libraries easier if this was also included in 2.2 (if you do it). FYI @spencerkclark |
Would that only be for month? Then it would be inconsistent with the other freq strings, which could be confusing ( |
renaming the alias for MonthBegin to "MS" is just the beginning. The whole list of aliases to change: |
unfortunately there is not enough time to resolve this issue. The reason: after renaming |
Inconvenient but understandable.
These are already implemented for pandas 2.2, right? And these are all consistent: all use But maybe I missed/ misunderstood something. |
sorry, it's my mistake. You are right, the renaming "Y", "Q", etc. to "YE", "QE", etc. is already implemented for pandas 2.2. The list of aliases to change: “YS”, "BYS”, "QS”, "BQS”, "MS”, "BMS”, "SMS”, "CBMS”. |
Hi all, I personally think that MS is fine as it is and that the change isn't worth the hassle. At the least, if all the breaking changes were in the same version (2.2), it would be much easier to work around! I know our usage isn't representative of the vast majority of pandas' users, but I thought it was pertinent to raise that flag here. Thanks! |
-0, there were some of these that were a real problem, but AFAICT those have all been handled |
thanks all for your comments! there kind of still is a problem though. currently:
however:
One solution, as Natalia's suggesting, is to rename the *S ones to *B (all in one go - it's too late for 2.2, this would have to be for the 3.x cycle if agreed) |
If I may, from my perspective disallowing mixed-casing would be a preferable option. Offsets are described in the doc with a specific case, and same case is always used in examples (AFAIK). Disallowing mixed-case is still a "regression" as it removes a "feature", but at least it does not break the documented usage of the library. |
thanks for your input, this is useful! that may indeed be better |
As a follow up of renaming
‘M’
to‘ME’
for MonthEnd (#52064) I suggest to rename strings denotingMonthBegin
frequency from‘MS’
to‘MB’
.The reason: we have alias
‘ms’
for the class Milli and using‘MB’
for MonthBegin will be more clear. It will help to create consistent naming for aliases.The text was updated successfully, but these errors were encountered: