Uh oh!
There was an error while loading. Please reload this page.
Respect keep_attrs when using Dataset.set_index (#4955) - #5972
Closed
gcaria wants to merge 1 commit into
Closed
Conversation
mathause
commented
Nov 24, 2021
Collaborator
#5957 seems to have snuck in - can you merge master? |
gcariaforce-pushed
the
keep_attrs_set_index
branch
from
November 24, 2021 08:38
93b6b50 to
c47cb38Comparemathause
commented
Nov 24, 2021
Collaborator
benbovy
commented
Nov 24, 2021
Member
Thanks for pinging me @mathause. And sorry @gcaria I didn't see #4955 and this PR until now. Indeed, there's no need for a fix considering that in #5692 variable attributes are now propagated properly through |
dcherian
commented
Nov 24, 2021
Contributor
Shall we merge only the test then? |
benbovy
commented
Nov 24, 2021
Member
I think I added tests for attributes in #5692, but I need to check. |
max-sixty
commented
Sep 30, 2023
Collaborator
Should we close? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pre-commit run --all-fileswhats-new.rstThe original issue was about
DataArray.set_index, but since this simply callsDataset.set_index, I have only added a test for the latter.DataArray.set_indexprobably deserves a test too, please let me know what you think.