3.6.14.1.5. statsmodels.graphics.utils.maybe_name_or_idx

statsmodels.graphics.utils.maybe_name_or_idx(idx, model)[source]

Give a name or an integer and return the name and integer location of the column in a design matrix.