1.2.10.2.2. statsmodels.api.OLS.df_resid

OLS.df_resid

The residual degree of freedom, defined as the number of observations minus the rank of the regressor matrix.