aryagraph.io.interop.from_pandas#
- aryagraph.io.interop.from_pandas(nodes_df: Any = None, edges_df: Any = None, *, node_id: str = 'id', source: str = 'source', target: str = 'target', directed: bool = False, dag: bool = False) Graph[source]#
Graph from a node table and/or an edge table (the inverse of
to_pandas()).Node ids come from the node_id column when it exists, else from the index; every other column is a node attribute. Every edge column besides source and target is an edge attribute. Missing cells are skipped.