Skip to content

DataArray.loc should accept boolean arrays #182

Closed

Description

@shoyer

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

Activity

  1. added a commit that references this issue on Jul 31, 2014
    b782e82
  2. added this to the 0.2 milestone on Jul 31, 2014
  3. added a commit that references this issue on Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions