Open jbrockmendel opened 7 years ago
On a closer look, it appears that the behavior is correct but misleading. QuarterEnd(startingMonth=2)
is an offset for quarters that start on Feb 1, May 1, Aug 1, Nov 1. I assumed that QuarterEnd(startingMonth=2)
would be an offset corresponding to the ends of those same quarters. That is incorrect. QuarterEnd(startingMonth=2)
is an offset for quarters that end on Feb 2[89], May 31, Aug 31, Nov 30.
I'm not the first to make this mistake or otherwise end up confused:
I suggest the following:
startingMonth
should be replaced with something non-camelCase anyway, so let's take the opportunity to replace a problematic kwarg with a clear one.q1start_month=2
means Q1 begins Feb1 and ends Apr 30 (\pm business days)to_qtr_end
, to_qtr_business_begin
, to_year_end
(hopefully its obvious what they would do).Thoughts? I'm happy to implement+test, but would like to get buy-in first.
The QuarterStart behavior makes sense to me; the QuarterEnd does not. If Feb1 is the start of a quarter, shouldn't the end of that same quarter be Apr30?