modin.pandas.DatetimeIndex.second

property DatetimeIndex.second: Index[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/modin/plugin/extensions/datetime_index.py#L368-L387)

The seconds of the datetime.

Return type:

An Index with the seconds of the datetime.

Examples

>>> idx = pd.date_range("2000-01-01", periods=3, freq="s")
>>> idx
DatetimeIndex(['2000-01-01 00:00:00', '2000-01-01 00:00:01',
               '2000-01-01 00:00:02'],
              dtype='datetime64[ns]', freq=None)
>>> idx.second
Index([0, 1, 2], dtype='int64')
Copy
Language: English