Skip to content

TST: add test case of ngroup with NaN value #54966

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 7 commits into from
Sep 6, 2023

Conversation

josemayer
Copy link
Contributor

@josemayer josemayer commented Sep 2, 2023

josemayer and others added 4 commits September 2, 2023 14:17
Co-authored-by: José Lucas Silva Mayer <[email protected]>
Co-authored-by: Willian Wang <[email protected]>
Co-authored-by: José Lucas Silva Mayer <[email protected]>
Co-authored-by: Willian Wang <[email protected]>
Co-authored-by: José Lucas Silva Mayer <[email protected]>
Co-authored-by: Willian Wang <[email protected]>
@mroeschke mroeschke added the Testing pandas testing functions or related to the test suite label Sep 5, 2023
@josemayer josemayer requested a review from rhshadrach September 6, 2023 15:13
@mroeschke mroeschke added this to the 2.2 milestone Sep 6, 2023
@mroeschke mroeschke merged commit f87b7e3 into pandas-dev:main Sep 6, 2023
@mroeschke
Copy link
Member

Thanks @josemayer

mroeschke added a commit to mroeschke/pandas that referenced this pull request Sep 11, 2023
* add test case of ngroup with nan value

Co-authored-by: José Lucas Silva Mayer <[email protected]>
Co-authored-by: Willian Wang <[email protected]>

* fix linter issues

Co-authored-by: José Lucas Silva Mayer <[email protected]>
Co-authored-by: Willian Wang <[email protected]>

* use Categorical object instead of pd.Categorical

Co-authored-by: José Lucas Silva Mayer <[email protected]>
Co-authored-by: Willian Wang <[email protected]>

* use native assert function

Co-authored-by: Matthew Roeschke <[email protected]>

* test full result of ngroup method

Signed-off-by: José Lucas Silva Mayer <[email protected]>

---------

Signed-off-by: José Lucas Silva Mayer <[email protected]>
Co-authored-by: Willian Wang <[email protected]>
Co-authored-by: Matthew Roeschke <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: GroupBy.ngroup dropna=False inconsistency when using Categorical
3 participants