-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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
Check API changes in whatsnew #34801
Comments
I think a section like "Bug Fixes with potential API implications" might make sense. e.g. https://pandas.pydata.org/pandas-docs/dev/whatsnew/v1.1.0.html#consistency-across-groupby-reductions might fit there. |
There are indeed a lot of items in there that are not actually API changes. For the ones in the bullet points, made an overview here with a first judgment on what I think they are. In addition to a potential section "Bug Fixes with potential API implications", it might also make sense to have a section with "changed errors" for all cases where we made raised errors more consistent (there are quite a few in the list below). As that is only relevant for you if you actually catch errors (so most users could fully skip such a section).
This only includes the "small ones", not the API changes that have its own subsection. |
About this one:
People are certainly passing |
Do we have a stance on whether changing the exception raised counts as an API breaking change? |
I think changed errors is enough, these are api breaking, but not worth deprecating |
An overview of the other items that each have their own subsections:
|
Not sure how to exactly call this, |
I think the docs made it clear that that was an implementation detail that could change. Let's call it a bugfix. |
To summarize my thoughts here from what I recall from the dev chat about this (but probably more my opinion though).
@Dr-Irv you also mentioned something about more clearly putting it in the policy that certain kinds of api changes/bug fixes can still happen. There is already some text about this: https://pandas.pydata.org/docs/dev/development/policies.html (the note), but if you have concrete feedback, certainly welcome. |
@jorisvandenbossche That policy only says "API breaking change". What I was talking about is that there are different kinds of "API breaking changes". Here are different kinds, based on what I could think of at the moment. The list is probably longer:
I think the first 3 are ones we want to reserve for major releases. The second two are a bit of grey area. I don't think the last one is an API breaking change. So if you consider that list (and maybe others), then how you document those changes for each minor (or technical) release for each of those categories needs to be considered. Hope this helps. |
The at on that page staring with "pandas will sometimes make behavior changing" attempts to describe that nuance. Expanding that to have concrete examples would probably be welcome. We now have a "Notable bug fixes", so for my purposes this issue can be closed. I think additional improvements to the whatsnew would be welcome though. |
Our whatsnew has several sections detailing API changes:
Many of these, like adding
DataFrame.value_counts
are fine and should just be moved to a different section.Others like #31905 will need to be looked at closely, and we'll need to determine if they're API breaking or bug fixes.
The text was updated successfully, but these errors were encountered: