pandas.RangeIndex.from_range

classmethod RangeIndex.from_range(data, name=None, dtype=None)[source]

Create RangeIndex from a range object.

Returns:
RangeIndex