Skip to content

Commit b6cb1b3

Browse files
SedosaWillAyd
authored andcommitted
DOC: Updating See Also section in IndexOpsMixin (pandas-dev#28667)
1 parent df10e3f commit b6cb1b3

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

pandas/core/base.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -678,8 +678,10 @@ def _is_homogeneous_type(self):
678678
679679
See Also
680680
--------
681-
DataFrame._is_homogeneous_type
682-
MultiIndex._is_homogeneous_type
681+
DataFrame._is_homogeneous_type : Whether all the columns in a
682+
DataFrame have the same dtype.
683+
MultiIndex._is_homogeneous_type : Whether all the levels of a
684+
MultiIndex have the same dtype.
683685
"""
684686
return True
685687

pandas/core/frame.py

+7
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,13 @@ def _is_homogeneous_type(self) -> bool:
535535
-------
536536
bool
537537
538+
See Also
539+
--------
540+
Index._is_homogeneous_type : Whether the object has a single
541+
dtype.
542+
MultiIndex._is_homogeneous_type : Whether all the levels of a
543+
MultiIndex have the same dtype.
544+
538545
Examples
539546
--------
540547
>>> DataFrame({"A": [1, 2], "B": [3, 4]})._is_homogeneous_type

pandas/core/indexes/multi.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -665,8 +665,10 @@ def _is_homogeneous_type(self):
665665
666666
See Also
667667
--------
668-
Index._is_homogeneous_type
669-
DataFrame._is_homogeneous_type
668+
Index._is_homogeneous_type : Whether the object has a single
669+
dtype.
670+
DataFrame._is_homogeneous_type : Whether all the columns in a
671+
DataFrame have the same dtype.
670672
671673
Examples
672674
--------

0 commit comments

Comments
 (0)