Closed kjartan-at-bravos closed 6 months ago
For instance,
import polars as pl import pyoframe as pf m = pf.Model() m.x = pf.Variable(pl.DataFrame([1,2,3]), vtype=pf.BINARY)
import polars as pl
import pyoframe as pf
m = pf.Model()
m.x = pf.Variable(pl.DataFrame([1,2,3]), vtype=pf.BINARY)
Done.
Although you'd need to do pf.VType.BINARY. (I like to do from pyoframe import ... to make the code less verbose)
pf.VType.BINARY
from pyoframe import ...
For instance,
import polars as pl
import pyoframe as pf
m = pf.Model()
m.x = pf.Variable(pl.DataFrame([1,2,3]), vtype=pf.BINARY)