c0fec0de / anytree

Python tree data library
Apache License 2.0
947 stars 133 forks source link

export to table functionality #170

Closed jannikmi closed 1 year ago

jannikmi commented 3 years ago

For some use cases, like storing a tree structure to a relational data base, it is required to export a created object oriented tree into a table format (with a column like parent_id linking the nodes). It would be nice if anytree had a functionality like node.to_dataframe() for this.

c0fec0de commented 3 years ago
kayjan commented 1 year ago

Hi, this is implemented over here.

https://bigtree.readthedocs.io/en/latest/bigtree/tree/export.html#bigtree.tree.export.tree_to_dataframe