Skip to content

Functions for reading GAMS gdx data into a pandas dataframe

Notifications You must be signed in to change notification settings

mmowers/gdxread

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gdxread

Python package to read gdx data into pandas dataframes

Install | Use | Update | Uninstall

Install

Dependencies

  • Python 2.7 (easiest to get through Anaconda at https://www.continuum.io/downloads)
  • pandas (should come automatically with Anaconda)
  • GAMS Python bindings: On command line, navigate to the GAMS Python API files for Python 2.7, e.g. C:\GAMS\win64\24.7\apifiles\Python\api, and run this command:
    python setup.py install
    This will make available the gdxcc and gams python modules, which are imported by gdxread.

Get the Latest Package

From command line:

pip install git+https://github.com/mmowers/gdxread.git@master

Use

To get a pandas dataframe from GDX parameter in a python script:

import gdxread

df = gdxread.get_df_from_param('path_to_gdx_file', 'param_name')

Update

To update/upgrade gdxread, go to command line and enter:

pip install git+https://github.com/mmowers/gdxread.git@master --upgrade

Uninstall

pip uninstall gdxread

About

Functions for reading GAMS gdx data into a pandas dataframe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages