Skip to content

TST: fix _infer_freq for pandas .14+ compat - #1872

Merged
josef-pkt merged 1 commit into
statsmodels:masterfrom
TomAugspurger:infer_freq_pandas_break
Aug 6, 2014
Merged

josef-pkt merged 1 commit into
statsmodels:masterfrom
TomAugspurger:infer_freq_pandas_break

Conversation

@TomAugspurger

Copy link
Copy Markdown
Contributor

closes #1822
some discussion over at pandas: pandas-dev/pandas#7922

Basically pandas 0.14 fixed a bug with DatetimeIndex's raising an AttributeError if you
tried to access its freqstr attribute when it doesn't have a frequency.
The tests previously relied on having the freqstr attribute implying that freqstr was not None.

pandas 0.14 fixed a bug with DatetimeIndex's
freqstr attribute. Previously relied on
having the freqstr attribute implying that freqstr
was not none.
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.0%) when pulling 14e293d on TomAugspurger:infer_freq_pandas_break into 8709f00 on statsmodels:master.

@josef-pkt

Copy link
Copy Markdown
Member

fix looks short, just to know where to make the change.

@TomAugspurger Thanks, that relieves Skipper from fixing problems with pandas compatibility..
Do you know if this might cause any problems with older versions of pandas. TravisCI is green, so it should be fine with the tested versions.

@jseabold Any opinion?
I would just merge this and see whether it fixes the problems on python-xy ubuntu testing.
Since it's fixing failing tests, test coverage should be fine.

josef-pkt added a commit that referenced this pull request Aug 6, 2014
BUG: fix _infer_freq for pandas .14+ compat closes #1822
@josef-pkt
josef-pkt merged commit 2e806fc into statsmodels:master Aug 6, 2014
@josef-pkt

Copy link
Copy Markdown
Member

@josef-pkt

Copy link
Copy Markdown
Member

very good all freq test failures are gone.

(now we just have categorical.labels incompatibility with pandas left )

@josef-pkt josef-pkt added the PR label Aug 11, 2014
PierreBdR pushed a commit to PierreBdR/statsmodels that referenced this pull request Sep 2, 2014
…das_break

BUG: fix _infer_freq for pandas .14+ compat closes statsmodels#1822
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.

TST failure on Ubuntu pandas 0.14.0 , problems with frequency

3 participants