Skip to content

DOC: Updating See Also section in IndexOpsMixin #28667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pandas/core/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 7 additions & 0 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions pandas/core/indexes/multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
--------
Expand Down