Skip to content

BUG: base.Results.predict, handle nan index with formula - #3149

Merged
josef-pkt merged 2 commits into
statsmodels:masterfrom
josef-pkt:predict_missing_3087
Aug 15, 2016
Merged

josef-pkt merged 2 commits into
statsmodels:masterfrom
josef-pkt:predict_missing_3087

Conversation

@josef-pkt

Copy link
Copy Markdown
Member

closes #3087

solution: reindex to original exog after patsy has removed rows with missing
Considered as a bugfix, with backwards incompatibility in the formula-missing case.

needs update of release notes.

@coveralls

coveralls commented Aug 10, 2016 •

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.0008%) to 89.183% when pulling b34dad4 on josef-pkt:predict_missing_3087 into 60bf8a1 on statsmodels:master.

@josef-pkt

Copy link
Copy Markdown
Member Author
from pandas.util.testing import assert_series_equal, assert_index_equal
ImportError: cannot import name assert_index_equal

problem with ancient pandas
needs temporary fix for 0.8 that can be reverted.

Aside: There are other cases in the unit tests where I used numpy instead of pandas asserts to avoid missing pandas.testing functionality, which should be available by now.

@coveralls

coveralls commented Aug 10, 2016 •

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.003%) to 89.181% when pulling 3475760 on josef-pkt:predict_missing_3087 into 60bf8a1 on statsmodels:master.

@josef-pkt
josef-pkt merged commit ef53915 into statsmodels:master Aug 15, 2016
@josef-pkt josef-pkt mentioned this pull request Aug 16, 2016
4 of 28 tasks
@josef-pkt
josef-pkt deleted the predict_missing_3087 branch August 17, 2016 15:17
josef-pkt added a commit to josef-pkt/statsmodels that referenced this pull request Aug 19, 2016
BUG: base.Results.predict, handle nan index with formula
@TomAugspurger TomAugspurger mentioned this pull request Feb 2, 2017
2 tasks done
@josef-pkt josef-pkt added this to the 0.8 milestone Apr 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: predict fails with nan in exog when building series

2 participants