NREL / gdx-pandas

Python interface to read and write GAMS GDX files using pandas.DataFrames as the intermediate data format.
BSD 3-Clause "New" or "Revised" License
43 stars 16 forks source link

Adding function get_data_types to retrieve a map of symbol name to GamsDataType #97

Closed elainethale closed 1 year ago

elainethale commented 1 year ago

The new function get_data_types can be used in conjunction with to_dataframes to make code aware of the expected data type in the Value column. (E.g., floats unless GamsDataType.Set).

This PR also fixes list_symbols to actually return a list of str as is stated in the documentation. It was incorrectly returning a list of gdx.GdxSymbol objects.