Overview
Getting Started
User Guides
API Reference
Development
Migration Guides
Spark SQL
Pandas API on Spark
Input/Output
General functions
Series
DataFrame
Index objects
Window
GroupBy
Resampling
Machine Learning utilities
Extensions
Structured Streaming
MLlib (DataFrame-based)
Spark Streaming (Legacy)
MLlib (RDD-based)
Spark Core
Resource Management
Errors
pyspark.pandas.DatetimeIndex.year
¶
property
DatetimeIndex.
year
¶
The year of the datetime.
pyspark.pandas.DatetimeIndex
pyspark.pandas.DatetimeIndex.month