pandas.DatetimeIndex.is_quarter_start#
- property DatetimeIndex.is_quarter_start[source]#
Indicator for whether the date is the first day of a quarter.
This boolean attribute evaluates to True if the date falls on the first day of a calendar quarter (January 1, April 1, July 1, or October 1), and False otherwise. If the index has a business or anchored
freq(e.g."BQS"or"QS-FEB"), the result follows that frequency’s quarter boundaries instead of the calendar’s.See also
DatetimeIndex.quarterReturn the quarter of the date.
DatetimeIndex.is_quarter_endSimilar property for indicating the quarter end.
Examples
>>> idx = pd.date_range("2017-03-30", periods=4) >>> idx.is_quarter_start array([False, False, True, False])