When I am using embedded python code in GAMS can I import python packages such as pandas some how? When I am just normally write :
$onEmbeddedCode Python:
import pandas as pd
I get an 865 Problem in Embedded Code Section
Thank you
Python Embedded in Gams - Import Python Package
Re: Python Embedded in Gams - Import Python Package
Yes you can. Either install the package manually by navigating to your GMSPython folder (i.e. <GAMSRoot>/GMSPython) and using the pip executable (python package management system). This tool should be located in a folder "Scripts" or something similar. (you can install pandas with pip with the command: "pip install pandas") Alternatively use the solution proposed here to import packages from within your code: https://stackoverflow.com/questions/123 ... ithin-code