-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
COMPAT: Utilize copy
keyword in __array__
#57739
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
Comments
Linking the numpy issue I opened to discuss the expected semantics for this: numpy/numpy#25941 (in several places we now also ignore the |
I believe this came up again in a new issue. Should this be a blocker for 3.0? |
IMO I don't think this "bug" should block a release, but would be very nice to fix for 3.0 |
Hi - this is caused fairly large blocking issues in a production environment for us. If there was a way to roll a fix out , that would be great... |
This is a very simple thing to hot-fix @mg3146 you could probably do a PR yourself even. I agree it is a relatively large issue (because it can lead to silently modified dataframes on existing code). If you can't (or do not want) guess |
This bug is affecting statsmodels. Internally we mostly use ndarrays for predictability, and then wrap results as needed for pandas inputs. To do this, we often call |
sorry - I honestly dont know what half this means... |
This bug is affecting matplotlib code. Computing a colormap on a Series object has the unexpected behavior that the Series object gets modified. |
We will include a fix for this in pandas 2.3 (which is targetted for in 2-3 weeks) |
#57172 add a copy keyword that will be passed in with
__array__
in Numpy 2.0. Currently it is unused but it would be useful to respect that option when passedThe text was updated successfully, but these errors were encountered: