Skip to content

BUG: TimedeltaIndex == integer raises TypeError #23063

Closed
@jbrockmendel

Description

@jbrockmendel
pd.TimedeltaIndex(['1D']) == 1
[...]
TypeError: cannot compare a TimedeltaIndex with type int

pd.TimedeltaIndex(['1D']) == 1.
[...]
TypeError: cannot compare a TimedeltaIndex with type float

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions