Skip to content

Passing invalid unit to to_timedelta is silently ignored #6423

Closed
@cancan101

Description

@cancan101

For example:

In [25]: pd.to_timedelta([2,10], unit="days")

Out[25]:
0   00:00:00.000000
1   00:00:00.000000
dtype: timedelta64[ns]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Error ReportingIncorrect or improved errors from pandasTimedeltaTimedelta data type

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions