pandas / 0.25.0 / reference / api / pandas.rangeindex.from_range.html /

pandas.RangeIndex.from_range

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

Create RangeIndex from a range object.

Returns:
RangeIndex

© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.RangeIndex.from_range.html