Skip to content

ERR: clarify exceptions for invalid datetimelike ops #9631

Closed
@jreback

Description

@jreback

xref #9630

IIRC most of these are TypeErrors (see tseries/tests_base.py, section on addition/subtraction ops)
but I guess some are`NotImplementedError``

In [3]: pd.date_range('20130101',periods=5)+Timestamp('20140101')
NotImplementedError: 
In [4]: pd.date_range('20130101',periods=5)+Timestamp('20140101').to_datetime64()

TypeError: ufunc add cannot use operands with types dtype('<M8[ns]') and dtype('<M8[ns]')

Metadata

Metadata

Assignees

No one assigned

    Labels

    Error ReportingIncorrect or improved errors from pandas

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions