Skip to content
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

fix multiIndex min max issue #2923 #2924

Merged
merged 9 commits into from
Jun 27, 2019
Merged

fix multiIndex min max issue #2923 #2924

merged 9 commits into from
Jun 27, 2019

Conversation

arabidopsis
Copy link
Contributor

I ran pytest and it didn't seem to produce any problems.

@pep8speaks
Copy link

pep8speaks commented Apr 27, 2019

Hello @arabidopsis! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-06-27 16:06:21 UTC

@arabidopsis
Copy link
Contributor Author

Oops... I usually use black -- which I turned off since it would really have stuffed the code :)

@shoyer
Copy link
Member

shoyer commented Apr 27, 2019

Awesome, thank you @arabidopsis!

If you don't mind, it would be great if you could add a brief note about the bug fix to whats-new.rst. (if not, don't worry, I'll merge this in a few days either way)

You can ignore the test failure on Python 3.5. Something else seems to be going wrong there.

@arabidopsis
Copy link
Contributor Author

No problem. Thanks for xarray!

Just a question. I put a guard in to test just for tuples (because that's what was breaking for me) but it seems to me that _nan_minmax_object should just return utils.to_0d_object_array(data)
unconditionally at that point no? It's a max or a min right.

Wasn't sure.

@shoyer
Copy link
Member

shoyer commented Apr 28, 2019

Just a question. I put a guard in to test just for tuples (because that's what was breaking for me) but it seems to me that _nan_minmax_object should just return utils.to_0d_object_array(data)
unconditionally at that point no? It's a max or a min right.

Wasn't sure.

Yes, it does seem like a good idea to just return utils.to_0d_object_array() unilaterally in this case.

@dcherian dcherian mentioned this pull request May 30, 2019
15 tasks
@dcherian dcherian merged commit c729121 into pydata:master Jun 27, 2019
@dcherian
Copy link
Contributor

Thanks @arabidopsis. Welcome to xarray!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calling max() on a stacked dimension raises exception
4 participants