attribute
GLSAR.
df_model
The model degree of freedom, defined as the rank of the regressor matrix minus 1 if a constant is included.
statsmodels.regression.linear_model.GLSAR
statsmodels.regression.linear_model.GLSAR.df_resid