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

DOC: Updating See Also section in IndexOpsMixin #28667

merged 5 commits into from
Oct 2, 2019

Conversation

Sedosa
Copy link
Contributor

@Sedosa Sedosa commented Sep 28, 2019

  • Updated the "See Also" section for the IndexOpsMixin '''_is_homogenous_type'''

@Sedosa Sedosa changed the title Updating See Also section in IndexOpsMixin DOC: Updating See Also section in IndexOpsMixin Sep 28, 2019
@jschendel
Copy link
Member

Thanks!

Can you also update the See Also section for MultiIndex._is_homogeneous_type in a similar manner:

See Also
--------
Index._is_homogeneous_type
DataFrame._is_homogeneous_type

And can you add a See Also section to DataFrame._is_homogeneous_type? It should essentially be a copy/paste combining the Index/MultiIndex entries from the other See Also sections:

pandas/pandas/core/frame.py

Lines 530 to 552 in b1c3a90

def _is_homogeneous_type(self) -> bool:
"""
Whether all the columns in a DataFrame have the same type.
Returns
-------
bool
Examples
--------
>>> DataFrame({"A": [1, 2], "B": [3, 4]})._is_homogeneous_type
True
>>> DataFrame({"A": [1, 2], "B": [3.0, 4.0]})._is_homogeneous_type
False
Items with the same type but different sizes are considered
different types.
>>> DataFrame({
... "A": np.array([1, 2], dtype=np.int32),
... "B": np.array([1, 2], dtype=np.int64)})._is_homogeneous_type
False
"""

@jschendel jschendel added this to the 1.0 milestone Oct 1, 2019
@Sedosa
Copy link
Contributor Author

Sedosa commented Oct 1, 2019

The changes have been added @jschendel

@WillAyd WillAyd merged commit b6cb1b3 into pandas-dev:master Oct 2, 2019
@WillAyd
Copy link
Member

WillAyd commented Oct 2, 2019

Thanks @Sedosa

proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
bongolegend pushed a commit to bongolegend/pandas that referenced this pull request Jan 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants