MCPcopy Create free account
hub / github.com/dmlc/dgl / __setitem__

Method __setitem__

python/dgl/frame.py:690–700  ·  view source on GitHub ↗

Update the whole column. Parameters ---------- name : str The column name. col : Column or data convertible to Column The column data.

(self, name, data)

Source from the content-addressed store, hash-verified

688 return self._columns[name].data
689
690 def __setitem__(self, name, data):
691 """Update the whole column.
692
693 Parameters
694 ----------
695 name : str
696 The column name.
697 col : Column or data convertible to Column
698 The column data.
699 """
700 self.update_column(name, data)
701
702 def __delitem__(self, name):
703 """Delete the whole column.

Callers

nothing calls this directly

Calls 1

update_columnMethod · 0.95

Tested by

no test coverage detected