You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG: predict fails with nan in exog when building series #3087
dropping nan before adding the index was pretty nasty because there was no information which predictions correspond to which row, if number of rows was reduced.
So, assume nobody cared or didn't have a case with nan.
However, dropping nan in cross-validation or similar if only summary statistics are calculated is useful.
I think dropping nans with formulas in statsmodels 0.8.0, was a mistake and we add them back in, even if it breaks backwards compatibility for that case.
I guess, to get minimal overhead we check if formula was used, if yes, then use dmatrix with pandas return, otherwise ignore nans and work as it is now.
I guess we need a reindex or something like that. if len(exog) before and after patsy are not the same.
Activity
josef-pkt commentedon Jun 29, 2016
Yes, it's patsy's overzealos drop nan/missing policy
josef-pkt commentedon Aug 10, 2016
dropping nan before adding the index was pretty nasty because there was no information which predictions correspond to which row, if number of rows was reduced.
So, assume nobody cared or didn't have a case with nan.
However, dropping nan in cross-validation or similar if only summary statistics are calculated is useful.
I think dropping nans with formulas in statsmodels 0.8.0, was a mistake and we add them back in, even if it breaks backwards compatibility for that case.
I guess, to get minimal overhead we check if formula was used, if yes, then use dmatrix with pandas return, otherwise ignore nans and work as it is now.
I guess we need a reindex or something like that. if len(exog) before and after patsy are not the same.
BUG: base.Results.predict, handle nan index with formula, closes stat…
add basic distributed_estimation notebook