From 3fa994876b23d40702032b05c868a37feb270dcc Mon Sep 17 00:00:00 2001 From: alistair Date: Sun, 10 Jun 2018 22:43:39 +0100 Subject: [PATCH 1/3] Doc Fixes --- pandas/core/indexing.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 2c40be17ce781..cda51921e95c0 100755 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -46,6 +46,16 @@ class _IndexSlice(object): """ Create an object to more easily perform multi-index slicing + See Also + -------- + MultiIndex.remove_unused_levels : Create new MultiIndex with no unused levels. + + Notes + ----- + See the `Defined Levels Section + `_ + for further info on slicing a MultiIndex. + Examples -------- From 571f032c7d05de3b2870727cc4a79df0e29398b0 Mon Sep 17 00:00:00 2001 From: alistair Date: Sun, 10 Jun 2018 23:38:17 +0100 Subject: [PATCH 2/3] Pep8 --- pandas/core/indexing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index cda51921e95c0..77c26e02f0ec3 100755 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -48,7 +48,7 @@ class _IndexSlice(object): See Also -------- - MultiIndex.remove_unused_levels : Create new MultiIndex with no unused levels. + MultiIndex.remove_unused_levels : New MultiIndex with no unused levels. Notes ----- From 11fae9bc34995c7b8cf7445fab83451765f6faf4 Mon Sep 17 00:00:00 2001 From: alistair Date: Mon, 11 Jun 2018 23:35:05 +0100 Subject: [PATCH 3/3] Add Spinx ref --- pandas/core/indexing.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 77c26e02f0ec3..0e4f040253560 100755 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -52,8 +52,7 @@ class _IndexSlice(object): Notes ----- - See the `Defined Levels Section - `_ + See :ref:`Defined Levels ` for further info on slicing a MultiIndex. Examples