Skip to content

MultiIndex: support isna, fixes #34019 #38558

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

Closed
wants to merge 1 commit into from
Closed

Conversation

FRidh
Copy link

@FRidh FRidh commented Dec 18, 2020

Note sure what to do with the (smoke) tests here. I suppose an explicit test comparing input and output would be good to have.

@FRidh
Copy link
Author

FRidh commented Dec 18, 2020

Tested on top of 1.1.5, but seems there are additional failures on master.

Copy link
Member

@arw2019 arw2019 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add test(s)? It's the first thing we look at when reviewing

@FRidh
Copy link
Author

FRidh commented Dec 18, 2020

Before putting in any additional time I'd like to know if the chosen approach is acceptable from a functional point of view, that is

If there is within a level an NA, the entire label is considered NA

is considered the correct approach.

@arw2019
Copy link
Member

arw2019 commented Dec 18, 2020

Before putting in any additional time I'd like to know if the chosen approach is acceptable from a functional point of view, that is

If there is within a level an NA, the entire label is considered NA

is considered the correct approach.

Well ofc it's completely up to you! Bear in mind that this will need to go through multiple reviews and you will likely get feedback faster if you provide concrete examples of the implementation.

FWIW this seems not to break anything which is good. The one failure is an xfailed test which now doesn't raise:

pandas/tests/indexes/multi/test_integrity.py::test_isna_behavior

if you remove the xfail the checks should be green.

@arw2019 arw2019 added Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate MultiIndex Needs Info Clarification about behavior needed to assess issue labels Dec 22, 2020
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not a good soln here. rather defining nunique on a MI is better

@FRidh
Copy link
Author

FRidh commented Dec 22, 2020

this is not a good soln here. rather defining nunique on a MI is better

In the cython class?

@jreback
Copy link
Contributor

jreback commented Dec 22, 2020

this is not a good soln here. rather defining nunique on a MI is better

In the cython class?

no on MultiIndex

@github-actions
Copy link
Contributor

This pull request is stale because it has been open for thirty days with no activity. Please update or respond to this comment if you're still interested in working on this.

@github-actions github-actions bot added the Stale label Jan 22, 2021
@jreback
Copy link
Contributor

jreback commented Feb 11, 2021

closing as stale. if you want to continue, pls ping and can re-open.

@jreback jreback closed this Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate MultiIndex Needs Info Clarification about behavior needed to assess issue Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Multiindex.nunique raises NotImplementedError
3 participants