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

ENH: Prefer to_offset to get_offset. Closes #964. #986

Merged
merged 2 commits into from Jul 25, 2013

Conversation

jseabold
Copy link
Member

Ok, I lied about not wanting to get anything else in. This is a two line fix that will greatly improve our frequency handling, cut down on SO questions, and works fine with pandas 0.8.1. Requires the parser.parse changes to work on 0.8.1.

class _freq_to_pandas_class(object):
# being lazy, don't want to replace dictionary below
def __getitem__(self, key):
return get_offset(key)
return to_offset(key)
_freq_to_pandas = _freq_to_pandas_class()
except ImportError, err:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you using err, if not drop it, just noise that needs to be py version adjusted

@josef-pkt
Copy link
Member

I have no idea about these parts.

Merge it, and it will go through version compatibility testing.

@jseabold
Copy link
Member Author

Ok. Rebased on top of parser fix for 0.8.x. Merging.

jseabold added a commit that referenced this pull request Jul 25, 2013
ENH: Prefer to_offset to get_offset. Closes #964.
@jseabold jseabold merged commit eb17d75 into statsmodels:master Jul 25, 2013
@jseabold jseabold deleted the use-to-offset branch July 25, 2013 18:56
PierreBdR pushed a commit to PierreBdR/statsmodels that referenced this pull request Sep 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants