MCPcopy Create free account
hub / github.com/alibaba/GraphScope / to_dataframe

Method to_dataframe

python/graphscope/framework/graph.py:1119–1132  ·  view source on GitHub ↗

Select some elements of the graph and output as a pandas.DataFrame Args: selector (dict): Select some portions of graph. vertex_range (dict, optional): Slice vertices. Defaults to None. Returns: `pandas.DataFrame`

(self, selector, vertex_range=None)

Source from the content-addressed store, hash-verified

1117 return self._session._wrapper(self._graph_node.to_numpy(selector, vertex_range))
1118
1119 def to_dataframe(self, selector, vertex_range=None):
1120 """Select some elements of the graph and output as a pandas.DataFrame
1121
1122 Args:
1123 selector (dict): Select some portions of graph.
1124 vertex_range (dict, optional): Slice vertices. Defaults to None.
1125
1126 Returns:
1127 `pandas.DataFrame`
1128 """
1129 self._check_unmodified()
1130 return self._session._wrapper(
1131 self._graph_node.to_dataframe(selector, vertex_range)
1132 )
1133
1134 def to_directed(self):
1135 """Returns a directed representation of the graph.

Callers 15

test_serialize_roundtripFunction · 0.45
test_local_vm_distributeFunction · 0.45
test_graph_to_dataframeFunction · 0.45
test_contextFunction · 0.45
test_property_contextFunction · 0.45
test_run_cython_pie_appFunction · 0.45
test_vertex_traversalFunction · 0.45
test_edge_traversalFunction · 0.45

Calls 2

_check_unmodifiedMethod · 0.95
_wrapperMethod · 0.80

Tested by 15

test_serialize_roundtripFunction · 0.36
test_local_vm_distributeFunction · 0.36
test_graph_to_dataframeFunction · 0.36
test_contextFunction · 0.36
test_property_contextFunction · 0.36
test_run_cython_pie_appFunction · 0.36
test_vertex_traversalFunction · 0.36
test_edge_traversalFunction · 0.36