Top "Timedelta" questions

Timedelta refers to the difference between two timestamps, which is a measure of elapsed time.

Finding the mean and standard deviation of a timedelta object in pandas df

I would like to calculate the mean and standard deviation of a timedelta by bank from a dataframe with two …

python pandas datetime mean timedelta
Python's timedelta: can't I just get in whatever time unit I want the value of the entire difference?

I am trying to have some clever dates since a post has been made on my site ("seconds since, hours …

python datetime timedelta
Displaying a timedelta object in a django template

I'm having trouble getting my django template to display a timedelta object consistently. I tried using the time filter in …

python django django-templates timedelta
Pandas adding Time column to Date index

I have a dataframe, Date index type is Timestamp, Time column is datetime.Time: Time Value Date 2004-05-01 0:15 3.58507 2004-05…

python pandas multiple-columns reshape timedelta
Using datetime.timedelta to add years

I am doing some time calculations in Python. Goal: Part of this is trying to : Given a date, add time …

python datetime timedelta python-dateutil
Is there an easy way to convert ISO 8601 duration to timedelta?

Given a ISO 8601 duration string, how do I convert it into a datetime.timedelta? This didn't work: timedelta("PT1H5…

python datetime timedelta python-datetime
timedelta to string type in pandas dataframe

I have a dataframe df and its first column is timedelta64 df.info(): <class 'pandas.core.frame.DataFrame'> …

python pandas timedelta
Something like python timedelta in golang

I want to get a datetime, counting weeks from a date, days from a week and seconds from 00:00 time. With …

go timedelta
timedelta error with numpy.longdouble dtype

I have times with dtype numpy.longdouble and when I'm trying to use that values with timedelta function I've got …

python numpy types timedelta python-datetime
Number of seconds since the beginning of the day UTC timezone

How do I find "number of seconds since the beginning of the day UTC timezone" in Python? I looked at …

python utc timedelta seconds