From 2b427d509d7098e04feb2644ea41dd0780a365ce Mon Sep 17 00:00:00 2001 From: Alastair James Date: Sat, 28 Sep 2019 18:06:26 +0100 Subject: [PATCH 1/5] Updating See Also section Updated the See Also section for IndexOpsMixin '''_is_homogenous_type''' --- pandas/core/base.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pandas/core/base.py b/pandas/core/base.py index 910b05c47071d..70015187a9a9a 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -678,8 +678,10 @@ def _is_homogeneous_type(self): See Also -------- - DataFrame._is_homogeneous_type - MultiIndex._is_homogeneous_type + DataFrame._is_homogeneous_type : Whether all the columns in a + DataFrame have the same type. + MultiIndex._is_homogeneous_type : Whether the levels of a + MultiIndex all have the same dtype. """ return True From 62fad46cbe47d66831a69a7e48650d9d486f36c1 Mon Sep 17 00:00:00 2001 From: Alastair James Date: Sat, 28 Sep 2019 18:13:33 +0100 Subject: [PATCH 2/5] Making sentence structure consistent --- pandas/core/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandas/core/base.py b/pandas/core/base.py index 70015187a9a9a..2a440a49933f0 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -679,9 +679,9 @@ def _is_homogeneous_type(self): See Also -------- DataFrame._is_homogeneous_type : Whether all the columns in a - DataFrame have the same type. - MultiIndex._is_homogeneous_type : Whether the levels of a - MultiIndex all have the same dtype. + DataFrame have the same dtype. + MultiIndex._is_homogeneous_type : Whether all the levels of a + MultiIndex have the same dtype. """ return True From 476e86fd394f3b1076e84f9494d4fcb33a241fad Mon Sep 17 00:00:00 2001 From: Alastair James Date: Tue, 1 Oct 2019 18:31:06 +0100 Subject: [PATCH 3/5] Removed extra-space between MultiIndex and have --- pandas/core/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/base.py b/pandas/core/base.py index 2a440a49933f0..8cdeaa666f94b 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -681,7 +681,7 @@ def _is_homogeneous_type(self): DataFrame._is_homogeneous_type : Whether all the columns in a DataFrame have the same dtype. MultiIndex._is_homogeneous_type : Whether all the levels of a - MultiIndex have the same dtype. + MultiIndex have the same dtype. """ return True From 774cc27192cfc15b932881b99c86ece2621fe189 Mon Sep 17 00:00:00 2001 From: Alastair James Date: Tue, 1 Oct 2019 18:33:16 +0100 Subject: [PATCH 4/5] filled in docstring 'See Also' in multi.py 668 --- pandas/core/indexes/multi.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 3273c4f8cd13b..b2bb50939551d 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -665,8 +665,10 @@ def _is_homogeneous_type(self): See Also -------- - Index._is_homogeneous_type - DataFrame._is_homogeneous_type + Index._is_homogeneous_type : Whether the object has a single + dtype. + DataFrame._is_homogeneous_type : Whether all the columns in a + DataFrame have the same dtype. Examples -------- From b255622c07328f90ea8011282295259ba9b84ace Mon Sep 17 00:00:00 2001 From: Alastair James Date: Tue, 1 Oct 2019 18:36:40 +0100 Subject: [PATCH 5/5] Added 'See Also' section to DataFrame._is_homogeneous_type in frame.py 538 --- pandas/core/frame.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index e4a44a89998e3..7aa9fc628f71b 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -535,6 +535,13 @@ def _is_homogeneous_type(self) -> bool: ------- bool + See Also + -------- + Index._is_homogeneous_type : Whether the object has a single + dtype. + MultiIndex._is_homogeneous_type : Whether all the levels of a + MultiIndex have the same dtype. + Examples -------- >>> DataFrame({"A": [1, 2], "B": [3, 4]})._is_homogeneous_type