Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bigtree/tree/construct/dataframes.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def dataframe_to_tree_by_relation(
allow_duplicates: bool = False,
node_type: type[T] = _node.Node, # type: ignore[assignment]
) -> T:
"""Construct tree from pandas DataFrame using parent and child names, return root of tree.
"""Construct tree from pandas DataFrame using adjacency list (parent and child names), return root of tree.

Root node is inferred when parent name is empty, or when name appears in parent column but not in child column.

Expand Down Expand Up @@ -714,7 +714,7 @@ def polars_to_tree_by_relation(
allow_duplicates: bool = False,
node_type: type[T] = _node.Node, # type: ignore[assignment]
) -> T:
"""Construct tree from polars DataFrame using parent and child names, return root of tree.
"""Construct tree from polars DataFrame using adjacency list (parent and child names), return root of tree.

Root node is inferred when parent name is empty, or when name appears in parent column but not in child column.

Expand Down
2 changes: 1 addition & 1 deletion bigtree/tree/construct/lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def list_to_tree_by_relation(
allow_duplicates: bool = False,
node_type: type[T] = node.Node, # type: ignore[assignment]
) -> T:
"""Construct tree from list of tuple containing parent-child names.
"""Construct tree from an adjacency list; list of tuple containing parent-child names.

Root node is inferred when parent is empty, or when name appears as parent but not as child.

Expand Down