Dataframes#

raphtory.export.to_edge_df(graph, explode_edges=False, include_edge_properties=True, include_update_history=True, include_property_histories=True)[source]#

Returns an edge list pandas dataframe for the given graph.

Note

Pandas is a required dependency. If you intend to use this function make sure that you install pandas with pip install pandas

Parameters:
  • graph (Graph) – A Raphtory graph.

  • explode_edges (bool) – A boolean that is set to True if you want to explode the edges in the graph. By default this is set to False.

  • include_edge_properties (bool) – A boolean that is set to True if you want to include the edge properties in the graph. By default this is set to True.

  • include_update_history (bool) – A boolean that is set to True if you want to include the update histories in the graph. By default this is set to True.

  • include_property_histories (bool) – A boolean that is set to True if you want to include the histories in the graph. By default this is set to True.

Returns:

A pandas dataframe.

raphtory.export.to_node_df(graph, include_node_properties=True, include_update_history=True, include_property_histories=True)[source]#

Returns an node list pandas dataframe for the given graph.

Note

Pandas is a required dependency. If you intend to use this function make sure that you install pandas with pip install pandas

Parameters:
  • graph (Graph) – A Raphtory graph.

  • include_node_properties (bool) – A boolean that is set to True if you want to include the node properties in the graph. By default this is set to True.

  • include_update_history (bool) – A boolean that is set to True if you want to include the update histories in the graph. By default this is set to True.

  • include_property_histories (bool) – A boolean that is set to True if you want to include the histories in the graph. By default this is set to True.

Returns:

A pandas dataframe.