pyspark.pandas.Series.dt.year

property dt.year

The year of the datetime.