MCPcopy
hub / github.com/dmlc/dgl / append

Method append

python/dgl/frame.py:843–858  ·  view source on GitHub ↗

Append another frame's data into this frame. If the current frame is empty, it will just use the columns of the given frame. Otherwise, the given data should contain all the column keys of this frame. Parameters ---------- other : Frame or dict-like

(self, other)

Source from the content-addressed store, hash-verified

841 self._columns[key].extend(col.data, col.scheme)
842
843 def append(self, other):
844 """Append another frame's data into this frame.
845
846 If the current frame is empty, it will just use the columns of the
847 given frame. Otherwise, the given data should contain all the
848 column keys of this frame.
849
850 Parameters
851 ----------
852 other : Frame or dict-like
853 The frame data to be appended.
854 """
855 if not isinstance(other, Frame):
856 other = Frame(other)
857 self._append(other)
858 self._num_rows += other.num_rows
859
860 def clear(self):
861 """Clear this frame. Remove all the columns."""

Callers 15

kill_processFunction · 0.80
get_killed_pidsFunction · 0.80
get_remote_pidsFunction · 0.80
submit_jobsFunction · 0.80
mainFunction · 0.80
_read_graphFunction · 0.80
_read_part_graphsFunction · 0.80
etype2canonical_etypeFunction · 0.80
kill_processFunction · 0.80
get_killed_pidsFunction · 0.80
get_remote_pidsFunction · 0.80
submit_jobsFunction · 0.80

Calls 2

_appendMethod · 0.95
FrameClass · 0.85

Tested by 15

_single_machine_runFunction · 0.64
_prepare_test_dataFunction · 0.64
create_random_heteroFunction · 0.64
_chunk_numpy_arrayFunction · 0.64
_chunk_graphFunction · 0.64
test_dataFunction · 0.64
_get_test_dataFunction · 0.64
test_rgcnFunction · 0.64
test_reduce_readoutFunction · 0.64
test_topkFunction · 0.64
test_softmaxFunction · 0.64