Skip to content
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

infer_freq end assumption #1789

Closed
jseabold opened this issue Aug 20, 2012 · 1 comment

Comments

@jseabold
Copy link
Contributor

commented Aug 20, 2012

I'm not sure whether this is something that should be fixed/changed or not, but right now infer_freq takes the first value in a DatetimeIndex and uses that to impose end of period assumptions. E.g., if I have

dates = sm.tsa.datetools.dates_from_range('1959Q2', '2009Q3')
pandas.Index(dates).inferred_freq

I get 'Q-JUN' just because of where the series starts. Would it be better to just use the default 'Q' -> 'Q-DEC'?

@wesm

This comment has been minimized.

Copy link
Member

commented Aug 29, 2012

Yes, Q-DEC would be better. Marked this as a bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.