From 15350e98ec7f55cf5e86db487aaffa412d519c04 Mon Sep 17 00:00:00 2001 From: Nikhil1O1 <49715980+Nikhil1O1@users.noreply.github.com> Date: Wed, 9 Sep 2020 09:02:37 +0530 Subject: [PATCH 1/3] Update base.py Index is now described as List instead of Set --- pandas/core/indexes/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 8014b16d07b01..6ce56ddf2c77d 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -195,7 +195,7 @@ def _new_Index(cls, d): class Index(IndexOpsMixin, PandasObject): """ - Immutable ndarray implementing an ordered, sliceable set. The basic object + Immutable ndarray implementing an ordered, sliceable list. The basic object storing axis labels for all pandas objects. Parameters From 42ebc0c16bb74f005a07fcb2c3d5f33721f2a477 Mon Sep 17 00:00:00 2001 From: Nikhil Choudhary <49715980+Nikhil1O1@users.noreply.github.com> Date: Wed, 9 Sep 2020 23:00:41 +0530 Subject: [PATCH 2/3] DOC: Improve Index docstrings Discarded list/Set analogy. Will refer to it as Sequence --- pandas/core/indexes/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 6ce56ddf2c77d..67456096e8681 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -195,7 +195,7 @@ def _new_Index(cls, d): class Index(IndexOpsMixin, PandasObject): """ - Immutable ndarray implementing an ordered, sliceable list. The basic object + Immutable sequence used for indexing and alignment. The basic object storing axis labels for all pandas objects. Parameters From b8338ca2e66534c49121016d42d0a4c4d2262929 Mon Sep 17 00:00:00 2001 From: Nikhil1O1 <49715980+Nikhil1O1@users.noreply.github.com> Date: Wed, 9 Sep 2020 23:07:36 +0530 Subject: [PATCH 3/3] DOC: Improve Index docstrings Discarded list/Set analogy. Will refer to it as Sequence. --- pandas/core/indexes/numeric.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/indexes/numeric.py b/pandas/core/indexes/numeric.py index 079f43cb2c66b..125602ef2054a 100644 --- a/pandas/core/indexes/numeric.py +++ b/pandas/core/indexes/numeric.py @@ -189,7 +189,7 @@ def _union(self, other, sort): _num_index_shared_docs[ "class_descr" ] = """ - Immutable ndarray implementing an ordered, sliceable set. The basic object + Immutable sequence used for indexing and alignment. The basic object storing axis labels for all pandas objects. %(klass)s is a special case of `Index` with purely %(ltype)s labels. %(extra)s.