Skip to content

LazyColumn.dt.is_quarter_start

is_quarter_start property

is_quarter_start: LazyColumn

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

Returns:

Name Type Description
LazyColumn LazyColumn

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

Examples:

print(df.head())
#              my_datetime_column
# 0  2023-01-01 00:00:00  # start of Q1
# 1  2023-04-01 12:34:56  # start of Q2
# 2  2023-07-01 08:00:00  # start of Q3
# 3  2023-10-01 23:59:59  # start of Q4

df["my_datetime_column"].dt.is_quarter_start
# [True, True, True, True, ...]