Skip to content

timedelta from string requires leading 0 #9851

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

Closed
hayd opened this issue Apr 11, 2015 · 1 comment
Closed

timedelta from string requires leading 0 #9851

hayd opened this issue Apr 11, 2015 · 1 comment
Labels
Bug Duplicate Report Duplicate issue or pull request Timedelta Timedelta data type

Comments

@hayd
Copy link
Contributor

hayd commented Apr 11, 2015

http://stackoverflow.com/questions/29573441/calculate-difference-between-times-rows-in-dataframe-pandas#comment47297436_29573471

In [11]: pd.to_timedelta("06:40:00")
Out[11]: Timedelta('0 days 06:40:00')

In [12]: pd.to_timedelta("6:40:00")
ValueError: cannot create timedelta string converter for [6:40:00]
@jreback
Copy link
Contributor

jreback commented Apr 11, 2015

dupe of #9570

@jreback jreback closed this as completed Apr 11, 2015
@jreback jreback added Bug Timedelta Timedelta data type Duplicate Report Duplicate issue or pull request labels Apr 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Duplicate Report Duplicate issue or pull request Timedelta Timedelta data type
Projects
None yet
Development

No branches or pull requests

2 participants