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

TST failure on Ubuntu pandas 0.14.0 , problems with frequency #1822

Closed
josef-pkt opened this issue Jul 9, 2014 · 2 comments

Comments

Projects
None yet
2 participants
@josef-pkt
Copy link
Member

commented Jul 9, 2014

https://launchpadlibrarian.net/179622502/buildlog_ubuntu-saucy-i386.statsmodels_0.6.0~ppa18~revno-1665~ubuntu13.10.1_UPLOADING.txt.gz

with
ubuntu/ saucy/main python-pandas all 0.14.0ppa16revno-6632~ubuntu13.10.1

======================================================================
ERROR: statsmodels.graphics.tests.test_tsaplots.test_plot_month
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/usr/lib/python2.7/dist-packages/numpy/testing/decorators.py", line 146, in skipper_func
    return f(*args, **kwargs)
  File "/build/buildd/statsmodels-0.6.0~ppa18~revno/debian/python-statsmodels/usr/lib/python2.7/dist-packages/statsmodels/graphics/tests/test_tsaplots.py", line 47, in test_plot_month
    fig = month_plot(dta)
  File "/build/buildd/statsmodels-0.6.0~ppa18~revno/debian/python-statsmodels/usr/lib/python2.7/dist-packages/statsmodels/graphics/tsaplots.py", line 246, in month_plot
    _check_period_index(x, freq="M")
  File "/build/buildd/statsmodels-0.6.0~ppa18~revno/debian/python-statsmodels/usr/lib/python2.7/dist-packages/statsmodels/tools/data.py", line 22, in _check_period_index
    if not inferred_freq.startswith(freq):
AttributeError: 'NoneType' object has no attribute 'startswith'

======================================================================
ERROR: statsmodels.graphics.tests.test_tsaplots.test_plot_quarter
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/usr/lib/python2.7/dist-packages/numpy/testing/decorators.py", line 146, in skipper_func
    return f(*args, **kwargs)
  File "/build/buildd/statsmodels-0.6.0~ppa18~revno/debian/python-statsmodels/usr/lib/python2.7/dist-packages/statsmodels/graphics/tests/test_tsaplots.py", line 72, in test_plot_quarter
    quarter_plot(dta.unemp)
  File "/build/buildd/statsmodels-0.6.0~ppa18~revno/debian/python-statsmodels/usr/lib/python2.7/dist-packages/statsmodels/graphics/tsaplots.py", line 280, in quarter_plot
    _check_period_index(x, freq="Q")
  File "/build/buildd/statsmodels-0.6.0~ppa18~revno/debian/python-statsmodels/usr/lib/python2.7/dist-packages/statsmodels/tools/data.py", line 22, in _check_period_index
    if not inferred_freq.startswith(freq):
AttributeError: 'NoneType' object has no attribute 'startswith'

======================================================================
ERROR: statsmodels.tsa.tests.test_arima.test_arma_predict_indices
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/buildd/statsmodels-0.6.0~ppa18~revno/debian/python-statsmodels/usr/lib/python2.7/dist-packages/statsmodels/tsa/tests/test_arima.py", line 971, in test_arma_predict_indices
    _check_start(*((model,) + case))
  File "/build/buildd/statsmodels-0.6.0~ppa18~revno/debian/python-statsmodels/usr/lib/python2.7/dist-packages/statsmodels/tsa/tests/test_arima.py", line 917, in _check_start
    start = model._get_predict_start(given, dynamic)
  File "/build/buildd/statsmodels-0.6.0~ppa18~revno/debian/python-statsmodels/usr/lib/python2.7/dist-packages/statsmodels/tsa/arima_model.py", line 581, in _get_predict_start
    method)
  File "/build/buildd/statsmodels-0.6.0~ppa18~revno/debian/python-statsmodels/usr/lib/python2.7/dist-packages/statsmodels/tsa/arima_model.py", line 306, in _validate
    start = _index_date(start, dates)
  File "/build/buildd/statsmodels-0.6.0~ppa18~revno/debian/python-statsmodels/usr/lib/python2.7/dist-packages/statsmodels/tsa/base/datetools.py", line 57, in _index_date
    "an integer" % date)
ValueError: There is no frequency for these dates and date 2009-12-31 00:00:00 is not in dates index. Try giving a date that is in the dates index or use an integer

======================================================================
ERROR: statsmodels.tsa.tests.test_arima.test_arima_predict_indices
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/buildd/statsmodels-0.6.0~ppa18~revno/debian/python-statsmodels/usr/lib/python2.7/dist-packages/statsmodels/tsa/tests/test_arima.py", line 1043, in test_arima_predict_indices
    _check_start(*((model,) + case))
  File "/build/buildd/statsmodels-0.6.0~ppa18~revno/debian/python-statsmodels/usr/lib/python2.7/dist-packages/statsmodels/tsa/tests/test_arima.py", line 917, in _check_start
    start = model._get_predict_start(given, dynamic)
  File "/build/buildd/statsmodels-0.6.0~ppa18~revno/debian/python-statsmodels/usr/lib/python2.7/dist-packages/statsmodels/tsa/arima_model.py", line 959, in _get_predict_start
    method)
  File "/build/buildd/statsmodels-0.6.0~ppa18~revno/debian/python-statsmodels/usr/lib/python2.7/dist-packages/statsmodels/tsa/arima_model.py", line 306, in _validate
    start = _index_date(start, dates)
  File "/build/buildd/statsmodels-0.6.0~ppa18~revno/debian/python-statsmodels/usr/lib/python2.7/dist-packages/statsmodels/tsa/base/datetools.py", line 57, in _index_date
    "an integer" % date)
ValueError: There is no frequency for these dates and date 2009-12-31 00:00:00 is not in dates index. Try giving a date that is in the dates index or use an integer
@josef-pkt

This comment has been minimized.

Copy link
Member Author

commented Jul 9, 2014

@jseabold
Do we have failures/errors with pandas 0.14.0?

I just saw this, and haven't checked yet whether this is specific to Ubuntu.
Most likely we don't have any pandas 0.14 on a test machine. (And I had thought python-xy uses pandas master.)

@yarikoptic

This comment has been minimized.

Copy link
Contributor

commented Jul 29, 2014

I have ran into this one while building on stock debian sid with pandas 0.14.1-1

josef-pkt added a commit that referenced this issue Aug 6, 2014

Merge pull request #1872 from TomAugspurger/infer_freq_pandas_break
BUG: fix _infer_freq for pandas .14+ compat closes #1822

PierreBdR pushed a commit to PierreBdR/statsmodels that referenced this issue Sep 2, 2014

Merge pull request statsmodels#1872 from TomAugspurger/infer_freq_pan…
…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
You can’t perform that action at this time.