diff --git a/pandas/core/base.py b/pandas/core/base.py index 910b05c47071d..8cdeaa666f94b 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 dtype. + MultiIndex._is_homogeneous_type : Whether all the levels of a + MultiIndex have the same dtype. """ return True 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 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 --------