Skip to content

LazyColumn.dt.is_year_start

is_year_start property

is_year_start: LazyColumn

Checks if each datetime value is the start of the year.

Returns:

Name Type Description
LazyColumn LazyColumn

A boolean LazyColumn, where True indicates the value is January 1st.

Examples:

print(df.head())
#              my_datetime_column
# 0  2023-01-01 00:00:00  # start of the year
# 1  2023-02-15 12:34:56
# 2  2024-01-01 23:59:59  # start of the next year

df["my_datetime_column"].dt.is_year_start
# [True, False, True, ...]