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)
| 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.""" |