Get the data corresponding to the display statements. The statements
can be AMPL expressions, or entities. It captures the equivalent of the
command:
where ds1, …, dsn are the displayStatements
with which the
function is called.
As only one DataFrame is returned, the operation will fail if the
results of the display statements cannot be indexed over the same set.
As a result, any attempt to get data from more than one set, or to get
data for multiple parameters with a different number of indexing sets
will fail.
- Args:
statements: The display statements to be fetched.
- Raises:
TypeError: if the AMPL visualization command does not succeed
for one of the reasons listed above.
RuntimeError: if there are issues with the data.
- Returns:
DataFrame capturing the output of the display
command in tabular form.