Return a new frame whose columns are subcolumns of this frame. The given row IDs should be within range [0, self.num_rows), and allow duplicate IDs. Parameters ---------- rowids : Tensor Row IDs Returns ------- Frame
(self, rowids)
| 920 | return newframe |
| 921 | |
| 922 | def subframe(self, rowids): |
| 923 | """Return a new frame whose columns are subcolumns of this frame. |
| 924 | |
| 925 | The given row IDs should be within range [0, self.num_rows), and allow |
| 926 | duplicate IDs. |
| 927 | |
| 928 | Parameters |
| 929 | ---------- |
| 930 | rowids : Tensor |
| 931 | Row IDs |
| 932 | |
| 933 | Returns |
| 934 | ------- |
| 935 | Frame |
| 936 | A new subframe. |
| 937 | """ |
| 938 | subcols = {k: col.subcolumn(rowids) for k, col in self._columns.items()} |
| 939 | subf = Frame(subcols, len(rowids)) |
| 940 | subf._initializers = self._initializers |
| 941 | subf._default_initializer = self._default_initializer |
| 942 | return subf |
| 943 | |
| 944 | def to(self, device, **kwargs): # pylint: disable=invalid-name |
| 945 | """Return a new frame with columns copy to the targeted device (cpu/gpu). |
no test coverage detected