ENH: Add set_indices method