cudf.core.series.DatetimeProperties.is_year_end#
- property DatetimeProperties.is_year_end: Series[source]#
布尔指示符,表示日期是否为一年中的最后一天。
- Returns:
- Series
- Booleans indicating if dates are the last day of the year.
示例
>>> import pandas as pd, cudf >>> dates = cudf.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] >>> dates.dt.is_year_end 0 False 1 True 2 False dtype: bool