Skip to content

BUG: dtype of DataFrame.idxmax/idxmin incorrect for empty frames #53296

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 8 commits into from
May 22, 2023

Conversation

topper-123
Copy link
Contributor

@topper-123 topper-123 commented May 18, 2023

@topper-123 topper-123 closed this May 19, 2023
@topper-123 topper-123 reopened this May 19, 2023
topper-123 and others added 3 commits May 19, 2023 12:45
@mroeschke mroeschke added the Dtype Conversions Unexpected or buggy dtype conversions label May 19, 2023
@@ -172,16 +172,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.Period.asfreq \
pandas.Period.now \
pandas.arrays.PeriodArray \
pandas.Interval.closed \
Copy link
Member

Choose a reason for hiding this comment

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

Looks like this shouldn't be included here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, something in the rebase went wrong. I’ve updated…

@mroeschke mroeschke added this to the 2.1 milestone May 22, 2023
@mroeschke mroeschke merged commit 4467c2f into pandas-dev:main May 22, 2023
@mroeschke
Copy link
Member

Thanks @topper-123

@topper-123 topper-123 deleted the empty_idxminmax_keep_dtype branch May 22, 2023 19:11
topper-123 added a commit to topper-123/pandas that referenced this pull request May 22, 2023
…das-dev#53296)

* BUG: dtype of DataFrame.idxmax/idxmin incorrect for empty frames

* simplify

* fix groupby test failures

* DOC: Fixing EX01 - Added examples (pandas-dev#53292)

* Added examples for Interval and IntervalArray

* changed code_checks.sh

* forgot these

* fix DataFrame.[idxmax|idxmin]

---------

Co-authored-by: Dea María Léon <[email protected]>
Daquisu pushed a commit to Daquisu/pandas that referenced this pull request Jul 8, 2023
…das-dev#53296)

* BUG: dtype of DataFrame.idxmax/idxmin incorrect for empty frames

* simplify

* fix groupby test failures

* DOC: Fixing EX01 - Added examples (pandas-dev#53292)

* Added examples for Interval and IntervalArray

* changed code_checks.sh

* forgot these

* fix DataFrame.[idxmax|idxmin]

---------

Co-authored-by: Dea María Léon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dtype Conversions Unexpected or buggy dtype conversions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: dtype of DataFrame.idxmax/idxmin incorrect if other dimension is 0 length
3 participants