From 0c93bcdc31e03bfecb700f50941d6223d46ce2f3 Mon Sep 17 00:00:00 2001 From: Natalia Mokeeva Date: Tue, 28 Oct 2025 21:09:07 +0100 Subject: [PATCH 1/2] =?UTF-8?q?doc=E2=80=94update-nitialiser-RangeIndex?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pandas/core/indexes/range.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py index ac794b18075d0..2bac1f5f783ec 100644 --- a/pandas/core/indexes/range.py +++ b/pandas/core/indexes/range.py @@ -88,11 +88,11 @@ class RangeIndex(Index): Parameters ---------- - start : int (default: 0), range, or other RangeIndex instance + start : int, range, or other RangeIndex instance, default None If int and "stop" is not given, interpreted as "stop" instead. - stop : int (default: 0) + stop : int, default None The end value of the range (exclusive). - step : int (default: 1) + step : int, default None The step size of the range. dtype : np.int64 Unused, accepted for homogeneity with other index types. From c8a38cc0ae85be0d93b1455c996bfa81092c3a0f Mon Sep 17 00:00:00 2001 From: Natalia Mokeeva Date: Tue, 28 Oct 2025 21:47:27 +0100 Subject: [PATCH 2/2] add default None to dtype --- pandas/core/indexes/range.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py index 2bac1f5f783ec..7a025cdd5fb68 100644 --- a/pandas/core/indexes/range.py +++ b/pandas/core/indexes/range.py @@ -94,7 +94,7 @@ class RangeIndex(Index): The end value of the range (exclusive). step : int, default None The step size of the range. - dtype : np.int64 + dtype : np.int64, default None Unused, accepted for homogeneity with other index types. copy : bool, default False Unused, accepted for homogeneity with other index types.