Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing invalid unit to to_timedelta is silently ignored #6423

Closed
cancan101 opened this issue Feb 20, 2014 · 0 comments · Fixed by #7616
Closed

Passing invalid unit to to_timedelta is silently ignored #6423

cancan101 opened this issue Feb 20, 2014 · 0 comments · Fixed by #7616
Labels
Error Reporting Incorrect or improved errors from pandas Timedelta Timedelta data type
Milestone

Comments

@cancan101
Copy link
Contributor

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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error Reporting Incorrect or improved errors from pandas Timedelta Timedelta data type
Projects
None yet
2 participants