當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


Python cudf.core.series.TimedeltaProperties.nanoseconds用法及代碼示例

用法:

property TimedeltaProperties.nanoseconds

返回納秒數 (n),其中 0 <= n < 1 微秒。

返回

Series

例子

>>> import cudf
>>> s = cudf.Series([12231312123, 1231231231, 1123236768712, 2135656,
...     3244334234], dtype='timedelta64[ns]')
>>> s
0    00:00:12.231312123
1    00:00:01.231231231
2    00:18:43.236768712
3    00:00:00.002135656
4    00:00:03.244334234
dtype: timedelta64[ns]
>>> s.dt.nanoseconds
0    123
1    231
2    712
3    656
4    234
dtype: int64

相關用法


注:本文由純淨天空篩選整理自rapids.ai大神的英文原創作品 cudf.core.series.TimedeltaProperties.nanoseconds。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。