示例#1
0
 def _make_source_rowindex(self):
     col = self._coldt.internal.column(0)
     ri = core.rowindex_from_column(col)
     if ri.max >= self._engine.dt.nrows:
         raise ValueError("The data column contains index %d which is "
                          "not allowed for a Frame with %d rows" %
                          (ri.max, self._engine.dt.nrows))
     return ri
示例#2
0
 def _make_final_rowindex(self):
     ee = self._engine
     nrows = ee.dt.nrows
     if isinstance(ee, LlvmEvaluationEngine):
         ptr = ee.get_result(self._fnname)
         return core.rowindex_from_filterfn(ptr, nrows)
     else:
         col = self._expr.evaluate_eager(self._engine)
         rowindex = core.rowindex_from_column(col)
         if self._inverse:
             rowindex = rowindex.inverse(nrows)
         if ee.rowindex:
             rowindex = rowindex.uplift(ee.rowindex)
         return rowindex
示例#3
0
 def _make_source_rowindex(self):
     col = self._coldt.internal.column(0)
     return core.rowindex_from_column(col)