'Modify rows in this index to agree with the specified
slice. For example, given an index
{\'5\': 1, \'2\': 0, \'3\': 2} on a column [\'2\', \'5\', \'3\'],
an input col_slice of [2, 0] will result in the relabeling
{\'3\': 0, \'2\': 1} on the sliced column [\'3\', \'2\'].
Parameters
col_slice : list
Indices to slice'

def replace_rows(self, col_slice):

    row_map = dict(((row, i) for (i, row) in enumerate(col_slice)))
    self.data.replace_rows(row_map)
