From an q x p contrast matrix C and an n x p design matrix D, checks if the contrast C is estimable by looking at the rank of vstack([C,D]) and verifying it is the same as the rank of D.
statsmodels.tools.tools.fullrank
statsmodels.tools.tools.monotone_fn_inverter
Enter search terms or a module, class or function name.