pandas.RangeIndex.from_range

classmethod RangeIndex.from_range(data: range, name=None, dtype=None) → 'RangeIndex'[source]

Create RangeIndex from a range object.

Returns
RangeIndex