- API reference
- pandas.DatetimeIndex
- pandas.Datet...
pandas.DatetimeIndex.second#
- propertyDatetimeIndex.second[source]#
The seconds of the datetime.
Examples
>>>datetime_series=pd.Series(...pd.date_range("2000-01-01",periods=3,freq="s")...)>>>datetime_series0 2000-01-01 00:00:001 2000-01-01 00:00:012 2000-01-01 00:00:02dtype: datetime64[ns]>>>datetime_series.dt.second0 01 12 2dtype: int32
On this page