code: def reset_index(self):
          
          new_columns = OrderedDict()
  
          new_index = default_index(_obtain_length(self._length, self._data))
  
          new_columns.update((name, Series(data.values, new_index, data.dtype, name))
                             for name, data in self.index._gather_data().items())
  
          # the data/columns
          new_columns.update((sr.name, Series(sr.values, new_index, sr.dtype, sr.name))
                             for sr in self._iter())
  
          return DataFrame(new_columns, new_index)
docs: Returns a new DataFrame with previous index as column(s).
  
          Returns
          -------
          DataFrame
              DataFrame with the new index a RangeIndex of its length.