Skip to content

API: Have invalid_comparison return pandas object following __pandas_priority__? #54475

Open
@mroeschke

Description

@mroeschke

Currently an invalid comparison (eq and ne only) returns an np.ndarray[bool].

In [5]: i = pd.Index([1, 2, 3], dtype='datetime64[ns]')

In [6]: s = pd.Series([1, 2, 3], dtype='timedelta64[ns]')

In [7]: i == s
Out[7]: array([False, False, False])

Should this follow __pandas_priority__ now and return Series[bool]?

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