4.7.14.1.5. statsmodels.tools.tools.drop_missing

statsmodels.tools.tools.drop_missing(Y, X=None, axis=1)[source]

Returns views on the arrays Y and X where missing observations are dropped.

Y : array-like X : array-like, optional axis : int

Axis along which to look for missing observations. Default is 1, ie., observations in rows.
Returns:

Y : array

All Y where the

X : array

Notes

If either Y or X is 1d, it is reshaped to be 2d.