pandas.DatetimeIndex.microsecond#
- property DatetimeIndex.microsecond[source]#
The microseconds of the datetime.
This attribute returns the microsecond component of each datetime value in the DatetimeIndex. Values range from 0 to 999999 (one microsecond is one millionth of a second).
See also
DatetimeIndex.secondThe seconds of the datetime.
DatetimeIndex.nanosecondThe nanoseconds of the datetime.
Examples
>>> idx = pd.date_range("2000-01-01", periods=3, freq="us") >>> idx.microsecond Index([0, 1, 2], dtype='int32')