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

Method to reorder nodes #271

Closed
wants to merge 13 commits into from

Conversation

TomNicholas
Copy link
Member

@TomNicholas TomNicholas commented Oct 25, 2023

WIP sketch of a new dt.reorder method

@TomNicholas TomNicholas added the enhancement New feature or request label Oct 25, 2023
datatree/datatree.py Outdated Show resolved Hide resolved
@TomNicholas TomNicholas mentioned this pull request Oct 25, 2023
5 tasks
@TomNicholas
Copy link
Member Author

TomNicholas commented Oct 26, 2023

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
Member Author

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
Member Author

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

@TomNicholas TomNicholas closed this Oct 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API for reorganizing levels
1 participant