Skip to content

BUG: Maybe a Bug with BQuarterEnd #4109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
BMeridian opened this issue Jul 3, 2013 · 1 comment
Closed

BUG: Maybe a Bug with BQuarterEnd #4109

BMeridian opened this issue Jul 3, 2013 · 1 comment
Labels
Bug Datetime Datetime data dtype Frequency DateOffsets
Milestone

Comments

@BMeridian
Copy link

prob related to #4069

import pandas as pd
from pandas.tseries.offsets import *

help(BQuarterEnd)
Help on class BQuarterEnd in module pandas.tseries.offsets:

class BQuarterEnd(DateOffset, CacheableOffset)
| DateOffset increments between business Quarter dates
| startingMonth = 1 corresponds to dates like 1/31/2007, 4/30/2007, ...
| startingMonth = 2 corresponds to dates like 2/28/2007, 5/31/2007, ...
| startingMonth = 3 corresponds to dates like 3/30/2007, 6/29/2007, ...
|
| Method resolution order:
| BQuarterEnd
| DateOffset
| CacheableOffset
| builtin.object
|
| Methods defined here:
|
| init(self, n=1, **kwds)

import datetime as dt
d = dt.datetime(2008, 8, 18)
dw = d+ BQuarterEnd(1)
dw
Out[10]: datetime.datetime(2008, 9, 30, 0, 0)

dw = d+ BQuarterEnd(1,2)


TypeError Traceback (most recent call last)
in ()
----> 1 dw = d+ BQuarterEnd(1,2)

TypeError: init() takes at most 2 arguments (3 given)

I am looking for Business quarter end which end APR, and MAY deflaut is JUN, or those three month cycles...

@jreback
Copy link
Contributor

jreback commented Mar 30, 2014

closing, not a bug

@jreback jreback closed this as completed Mar 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Datetime Datetime data dtype Frequency DateOffsets
Projects
None yet
Development

No branches or pull requests

2 participants