modin.pandas.DatetimeIndex.is_year_start¶
- property DatetimeIndex.is_year_start: Index[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/modin/plugin/extensions/datetime_index.py#L609-L632)¶
Indicate whether the date is the first day of a year.
- Returns:
An Index with boolean values. Note this is different from native pandas which
returns a python array.
See also
is_year_end
Similar property indicating the last day of the year.
Examples
>>> idx = pd.date_range("2017-12-30", periods=3) >>> idx DatetimeIndex(['2017-12-30', '2017-12-31', '2018-01-01'], dtype='datetime64[ns]', freq=None)
>>> idx.is_year_start Index([False, False, True], dtype='bool')