-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Description
from https://travis-ci.org/pandas-dev/pandas/jobs/215035109
We removed WidePanel
(just use Panel
) from pandas in 0.20.0-dev (upcoming), though has long been deprecated.
This showed up in our doc-build (as example of using statsmodels). You should just be able to remove it I think.
>>>-------------------------------------------------------------------------
Exception in /tmp/doc/source/basics.rst at block ending on line 755
Specify :okexcept: as an option in the ipython:: block to suppress this message
AttributeErrorTraceback (most recent call last)
<ipython-input-140-2592b91fd0e2> in <module>()
1 (bb.query('h > 0')
2 .assign(ln_h = lambda df: np.log(df.h))
----> 3 .pipe((sm.poisson, 'data'), 'hr ~ ln_h + year + g + C(lg)')
4 .fit()
5 .summary()
/home/travis/build/pandas-dev/pandas/pandas/core/generic.py in pipe(self, func, *args, **kwargs)
2850 'argument' % target)
2851 kwargs[target] = self
-> 2852 return func(*args, **kwargs)
2853 else:
2854 return func(self, *args, **kwargs)
/home/travis/miniconda3/envs/pandas/lib/python3.5/site-packages/statsmodels/base/model.py in from_formula(cls, formula, data, subset, drop_cols, *args, **kwargs)
153
154 tmp = handle_formula_data(data, None, formula, depth=eval_env,
--> 155 missing=missing)
156 ((endog, exog), missing_idx, design_info) = tmp
157
/home/travis/miniconda3/envs/pandas/lib/python3.5/site-packages/statsmodels/formula/formulatools.py in handle_formula_data(Y, X, formula, depth, missing)
61 return_type='dataframe', NA_action=na_action)
62 else:
---> 63 if data_util._is_using_pandas(Y, None):
64 result = dmatrices(formula, Y, depth, return_type='dataframe',
65 NA_action=na_action)
/home/travis/miniconda3/envs/pandas/lib/python3.5/site-packages/statsmodels/tools/data.py in _is_using_pandas(endog, exog)
97 def _is_using_pandas(endog, exog):
98 # TODO: Remove WidePanel when finished with it
---> 99 klasses = (pd.Series, pd.DataFrame, pd.WidePanel, pd.Panel)
100 return (isinstance(endog, klasses) or isinstance(exog, klasses))
101
AttributeError: module 'pandas' has no attribute 'WidePanel'
<<<-------------------------------------------------------------------------
Metadata
Metadata
Assignees
Labels
No labels