Skip to content

LazyColumn.dt.is_month_start

is_month_start property

is_month_start: LazyColumn

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

Returns:

Name Type Description
LazyColumn LazyColumn

A boolean LazyColumn, where True indicates the value is the first day of its month.

Examples:

print(df.head())
#              my_datetime_column
# 0  2023-01-01 00:00:00  # start of January
# 1  2023-01-15 12:34:56
# 2  2023-02-01 00:00:00  # start of February

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