dt.year

ColExpr.dt.year() ColExpr[source]

The year component of the date or datetime.