class
pandas.
RangeIndex
(
start
=
None
,
stop
=
None
,
step
=
None
,
dtype
=
None
,
copy
=
False
,
name
=
None
)
[source]
Immutable Index implementing a monotonic integer range.
RangeIndex is a memory-saving special case of an Index limited to representing
monotonic ranges with a 64-bit dtype. Using RangeIndex may in some instances
improve computing speed.
This is the default index type used
by DataFrame and Series when no explicit index is provided by the user.
Parameters
start
int (default: 0), range, or other RangeIndex instance
If int and “stop” is not given, interpreted as “stop” instead.
stop
int (default: 0)
step
int (default: 1)
dtype
np.int64
Unused, accepted for homogeneity with other index types.
copy
bool, default False
Unused, accepted for homogeneity with other index types.
name
object, optional
Name to be stored in the index.