You are viewing documentation about an older version (1.21.0). View latest version

modin.pandas.Series.dt.is_year_end

Series.dt.is_year_end[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.21.0/../../../../../opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/modin/pandas/series_utils.py#L657-L659)

Indicate whether the date is the last day of the year.

Returns:

The same type as the original data with boolean values. Series will have the same name and index. DatetimeIndex will have the same name.

Return type:

Series or DatetimeIndex

See also

is_year_start

Similar property indicating the start of the year.

Examples

This method is available on Series with datetime values under the .dt accessor, and directly on DatetimeIndex.

>>> dates = pd.Series(pd.date_range("2017-12-30", periods=3))
>>> dates
0   2017-12-30
1   2017-12-31
2   2018-01-01
dtype: datetime64[ns]
Copy
>>> dates.dt.is_year_end
0    False
1     True
2    False
dtype: bool
Copy
Language: English