DataTree

DataTree

DataTree([graph, root_node_name, ...])

Attributes

DataTree.root_node_name

The root node for this data tree, which is only ever a parent.

DataTree.subspaces

Direct access to node Dataset objects by name.

DataTree.relationships_are_digitized

Whether all relationships are digital (by position).

DataTree.n_cases

The size of the _caseid_ dimension of the root Dataset.

DataTree.n_alts

The size of the _altid_ dimension of the root Dataset.

DataTree.CASEID

The _caseid_ dimension of the root Dataset.

DataTree.ALTID

The _altid_ dimension of the root Dataset.

Methods

DataTree.add_dataset(name, dataset[, ...])

Add a new Dataset node to this DataTree.

DataTree.add_relationship(*args, **kwargs)

Add a relationship to this DataTree.

DataTree.digitize_relationships([inplace, ...])

Convert all label-based relationships into position-based.

DataTree.query_cases(*args, **kwargs)

Return a new DataTree, with a query filter applied to the root Dataset.

DataTree.replace_datasets([other, validate, ...])

Replace one or more datasets in the nodes of this tree.

DataTree.setup_flow(*args, **kwargs)

Set up a new Flow for analysis using the structure of this DataTree.