- API reference
- pandas.DatetimeIndex
- pandas.Datet...
pandas.DatetimeIndex.nanosecond#
- propertyDatetimeIndex.nanosecond[source]#
The nanoseconds of the datetime.
Examples
>>>datetime_series=pd.Series(...pd.date_range("2000-01-01",periods=3,freq="ns")...)>>>datetime_series0 2000-01-01 00:00:00.0000000001 2000-01-01 00:00:00.0000000012 2000-01-01 00:00:00.000000002dtype: datetime64[ns]>>>datetime_series.dt.nanosecond0 01 12 2dtype: int32
On this page