Skip to content

DataArray.__eq__ with str dtype #4

@kwgoodman

Description

@kwgoodman

This looks good:

>> x = DataArray([1, 2])
>> x == 1
   DataArray([ True, False], dtype=bool)
   (None,)

This doesn't (should return DataArrays):

>> x = DataArray(['a', 'b'])
>> x == 'a'
   array([ True, False], dtype=bool)       
>> x == 1
   False

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions