You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not the greatest issue facing the universe — but for the cause of consistency — should .reset_encoding be .drop_encoding, since it drops all encoding attributes?
For comparison:
.reset_coords — "Given names of coordinates, reset them to become variables."
'.drop_vars` — "Drop variables from this dataset."
🤚 .reset_encoding was indeed by addition. In hindsight, drop_encoding would have been a better name. Very open to seeing this changed to align with the other drop_foo methods.
max-sixty
added a commit
to max-sixty/xarray
that referenced
this issue
Oct 8, 2023
* Rename `reset_encoding` to `drop_encoding`
Closes#8259
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update dataarray.py
Co-authored-by: Illviljan <[email protected]>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update xarray/core/dataarray.py
Co-authored-by: Michael Niklas <[email protected]>
* Update xarray/core/variable.py
Co-authored-by: Michael Niklas <[email protected]>
* Update xarray/core/dataset.py
Co-authored-by: Michael Niklas <[email protected]>
* api
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Illviljan <[email protected]>
Co-authored-by: Michael Niklas <[email protected]>
What is your issue?
Not the greatest issue facing the universe — but for the cause of consistency — should
.reset_encoding
be.drop_encoding
, since it drops all encoding attributes?For comparison:
.reset_coords
— "Given names of coordinates, reset them to become variables."Also ref #8258
The text was updated successfully, but these errors were encountered: