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

DataArray.loc should accept boolean arrays #182

Closed
shoyer opened this issue Jul 15, 2014 · 0 comments · Fixed by #195
Closed

DataArray.loc should accept boolean arrays #182

shoyer opened this issue Jul 15, 2014 · 0 comments · Fixed by #195

Comments

@shoyer
Copy link
Member

shoyer commented Jul 15, 2014

Allowing boolean arrays for .loc would make xray more consistent with pandas: http://pandas.pydata.org/pandas-docs/stable/indexing.html#different-choices-for-indexing-loc-iloc-and-ix

There is basically no ambiguity since True and False are more or less useless coordinate labels

@shoyer shoyer added the todo label Jul 29, 2014
shoyer added a commit to shoyer/xarray that referenced this issue Jul 31, 2014
@shoyer shoyer added this to the 0.2 milestone Jul 31, 2014
keewis pushed a commit to keewis/xarray that referenced this issue Jan 17, 2024
* Joe's suggestions for index page

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

Successfully merging a pull request may close this issue.

1 participant