On Mon, Feb 25, 2013 at 5:30 PM, Lex H <
lex....@gmail.com> wrote:
> D'oh! I was calling QuarterBegin with startMonth=1 as the argument, not
> startingMonth=1. Thanks for your help Skipper.
>
> Does anyone else think that default for QuarterBegin's startingMonth should
> be 1, to bring it into line with QuarterEnd's default of 3.
>
> i.e. calling both QuarterBegin, and QuarterEnd without specifing
> startingMonth should give the start and end of the same quarter.
>
> expected behaviour:
>>>> datetime.date(2013, 12, 13) - pd.datetools.QuarterBegin()
> datetime.date(2013, 10, 1)
>>>> datetime.date(2013, 12, 13) + pd.datetools.QuarterEnd()
> datetime.date(2013, 12, 31)
>
>
> current behaviour:
>>>> datetime.date(2013, 12, 13) - pd.datetools.QuarterBegin()
> datetime.date(2013, 12, 1)
>>>> datetime.date(2013, 12, 13) + pd.datetools.QuarterEnd()
> datetime.date(2013, 12, 31)
>
> I'm happy to create a patch to change QuarterBegin's startingMonth from 3 to
> 1.
>
> Additionally, it's a bit counter-intuitive to have startingMonth as argument
> to QuarterEnd. Wouldn't endingMonth be a better choice?
I don't like the camel case argument names at all. I'm sure a PR for