bigframes.pandas.DatetimeIndex.year#

property DatetimeIndex.year: Index#

The year of the datetime

Examples:

>>> idx = bpd.Index([pd.Timestamp("20250215")])
>>> idx.year
Index([2025], dtype='Int64')