-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Document that Dataset.update defaults to being inplace. #2951
Comments
Thanks for the issue @nebain .
Would you be interested in adding it in a PR? |
Ideally, we would probably have I'm not sure if there's an easy way to change this incrementally, though. |
Maybe we could make update return a dummy object wrapping a Dataset that forwards all methods to the dataset but issues a warning on the first use? I think this could probably be cooked up with |
Adding a wrapper object would probably break I would vote for listing this as a breaking change in the next major version and start returning |
It is not documented that the inplace argument to Dataset.update defaults to True, in a departure from every other place where the inplace argument exists (I see this was briefly mentioned in #1756).
Currently the documentation reads:
I had to dig into the source code to understand why
new_ds = ds.update(changes)
was causing changes to ds. It needs to be documented that update is one of the few mutable functions on a dataset.The text was updated successfully, but these errors were encountered: