pydata / pydata/xarray

`DataTree`: missing methods

Open
#10,015 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement topic-DataTree
Dominant language
Python
Stars
4.2k
Forks
1.4k
Avg merge
2d 15h
Merged PRs (30d)
14

Description

Is your feature request related to a problem?

There are still missing methods on DataTree and I did not find an issue tracking those.

  • Did I miss that?
  • Is there a reason they are missing?

e.g.:

  • broadcast_like
  • dropna
  • transpose
  • ...

(I am sure there are more but these are the ones I need.)

Describe the solution you'd like

No response

Describe alternatives you've considered

We could use map_over_datasets(xr.Dataset.transpose, dt) but (1) that's annoying, (2) obj.transpose() would work for DataTree and Dataset etc.

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing DataTree API alongside the named Dataset methods: broadcast_like, dropna, and transpose. Determine which methods are missing and agree on the expected DataTree behavior before implementing the scoped set, with tests covering each supported method.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.