![]() |
VOOZH | about |
Pandas dt.is_quarter_start attribute returns a boolean value indicating whether the date is the first day of a quarter.
Output :
Syntax: Series.dt.is_quarter_start
Parameter: None
Returns: Series with boolean values
To check if a Date is the first date in its respective quarter in the Pandas Series, we use the dt.is_quarter_start attribute of the Pandas Library in Python.
Let us understand it better with an example:
Use the Series.dt.is_quarter_start attribute to check if the dates in the underlying data of the given series object are the first day of the quarter.
Output :
Now we will use the dt.is_quarter_start attribute to check if the dates in the given series object is the first day of the quarter or not.
Output :
👁 checked if date is first in quarter
As we can see in the output, the dt.is_quarter_start attribute has successfully accessed and returned boolean values indicating whether the dates are the first day of the quarter.