modin.pandas.TimedeltaIndex.nanoseconds

property TimedeltaIndex.nanoseconds: Index[source]

Number of nonoseconds (>= 0 and less than 1 microsecond) for each element.

Return type:

An Index with nanoseconds compnent of the timedelta.

Examples

>>> idx = pd.to_timedelta([1, 2, 3], unit='ns')
>>> idx
TimedeltaIndex(['0 days 00:00:00.000000001', '0 days 00:00:00.000000002',
                '0 days 00:00:00.000000003'],
               dtype='timedelta64[ns]', freq=None)
>>> idx.nanoseconds
Index([1, 2, 3], dtype='int64')
Copy