linopy.constraints.Constraint.to_polars#
- Constraint.to_polars()#
Convert the constraint to a polars DataFrame.
The resulting DataFrame represents a long table format of the all non-masked constraints with non-zero coefficients. It typically contains the columns labels, coeffs, vars, rhs, sign.
- Returns:
df (
polars.DataFrame)