BUG: QuarterBegin doesn't match other offsets for n=0 · Issue #11406 · pandas-dev/pandas (original) (raw)
xref #8435 (different issue though)
normally the semantic is to roll forward to the next period for n=0
In [15]: pd.Timestamp('2014-3-2') + pd.offsets.MonthBegin(n=0) Out[15]: Timestamp('2014-04-01 00:00:00')
In [16]: pd.Timestamp('2014-3-2') + pd.offsets.QuarterBegin(n=0) Out[16]: Timestamp('2014-03-01 00:00:00')
In [17]: #expected: Timestamp('2014-06-01 00:00:00')