pyspark.pandas.DatetimeIndex.is_year_start¶
-
property
DatetimeIndex.
is_year_start
¶ Indicate whether the date is the first day of a year.
- Returns
- Index
Returns an Index with boolean values.
See also
is_year_end
Similar property indicating the last day of the year.
Examples
>>> idx = ps.date_range("2017-12-30", periods=3) >>> idx.is_year_start Index([False, False, True], dtype='bool')