Python | Pandas Timedelta.delta Last Updated : 14 Jan, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Timedelta is a subclass of datetime.timedelta, and behaves in a similar manner. It is the pandas equivalent of python’s datetime.timedelta and is interchangeable with it in most cases. Timedelta.delta property in pandas.Timedelta is used to return the timedelta in nanoseconds. Syntax: Timedelta.delta Parameters: None Returns: return the timedelta in nanoseconds Code #1: Python3 1== # importing pandas as pd import pandas as pd # Create the Timedelta object td = pd.Timedelta('3 days 06:05:01.000030') # Print the Timedelta object print(td) print(td.delta) Output: 3 days 06:05:01.000030 281101000030000 Code #2: Python3 1== # importing pandas as pd import pandas as pd # Create the Timedelta object td = pd.Timedelta('1 days 7 hours') # Print the Timedelta object print(td) print(td.delta) Output: 1 days 07:00:00 111600000000000 Code #3: Python3 1== # importing pandas as pd import pandas as pd import datetime # Create the Timedelta object td = pd.Timedelta(datetime.timedelta(days = 3, hours = 7, seconds = 8)) # Print the Timedelta object print(td) print(td.delta) Output: 3 days 07:00:08 284408000000000 Comment More infoAdvertise with us Next Article Python | Pandas Timedelta.asm8 S Shivam_k Follow Improve Article Tags : Python Python-pandas Python pandas-timedelta Practice Tags : python Similar Reads Python | Pandas Timedelta.ceil() Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Timedelta is a subclass of datetime.timedelta, and behaves in a similar manner. It is 1 min read Python | Pandas Timedelta.days Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Timedelta is a subclass of datetime.timedelta, and behaves in a similar manner. It is 1 min read Python | Pandas Timedelta.asm8 Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Timedelta is a subclass of datetime.timedelta, and behaves in a similar manner. It is 1 min read Python | Pandas TimedeltaIndex.delete Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas TimedeltaIndex.delete() function make a new DatetimeIndex with passed location 2 min read Python | Pandas Timedelta.floor() Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Timedelta is a subclass of datetime.timedelta, and behaves in a similar manner. It is 1 min read Python | Pandas TimedeltaIndex.days Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas TimedeltaIndex.days attribute return the number of days for each element presen 2 min read Like