Write sets from python to a gdx

43 Views Asked by At

I have a DataFrame with different columns in python that I have to use in GAMS as SETS and I do not know how to pass them to GDX from Python. What I want is that in the GDX I can specify the type of element that is like this example:

enter image description here

I'm trying this but I'm getting an error:

import gdxpds
Sets.to_gdx(os.path.join(sFile_path_output1 + 'tablaSETS' '.gdx'),index = False)

Can you help me?

Thank you very much

0

There are 0 best solutions below