Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Method to reorder nodes - #271

Closed
TomNicholas wants to merge 13 commits into
xarray-contrib:mainfrom
TomNicholas:reorganize_nodes
Closed

Method to reorder nodes#271
TomNicholas wants to merge 13 commits into
xarray-contrib:mainfrom
TomNicholas:reorganize_nodes

Conversation

@TomNicholas

@TomNicholasTomNicholas commented Oct 25, 2023

Copy link
Copy Markdown
Member

WIP sketch of a new dt.reorder method

@TomNicholasTomNicholas added the enhancement New feature or request label Oct 25, 2023
Comment threaddatatree/datatree.py Outdated
@TomNicholasTomNicholas mentioned this pull request Oct 25, 2023
5 tasks
@TomNicholas

TomNicholas commented Oct 26, 2023

Copy link
Copy Markdown
MemberAuthor

I need to rename this so as not to be confused with Dataset.reorder_levels (which refers to levels of a MultiIndex).

@TomNicholas

Copy link
Copy Markdown
MemberAuthor

See the docs build for an example of what an example of using this looks like currently

https://xarray-datatree--271.org.readthedocs.build/en/271/generated/datatree.DataTree.reorder.html

@TomNicholas

Copy link
Copy Markdown
MemberAuthor

This would be cool to add upstream, but it's tracked upstream in pydata/xarray#9344, so closing here

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancementNew feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API for reorganizing levels

1 participant

@TomNicholas