pasteur.hierarchy.create_tree#
- pasteur.hierarchy.create_tree(node, common=0, ofs=0, n=None)[source]#
Receives the top node of the tree of a hierarchical attribute and converts it into the same tree structure, where the leaves have been replaced by bucket groups, with each bucket group containing the node it replaced.
For buckets lower than common, they are replaced by None to prevent merging them.
- Return type:
list