datatree.DataTree.width

Contents

Attention

This repository has been archived. Please use xarray.DataTree instead.

datatree.DataTree.width#

property DataTree.width: int#

Number of nodes at this level in the tree.

Includes number of immediate siblings, but also “cousins” in other branches and so-on.

Returns:

depth (int)

See also

level, depth