DynamicSpace.to_frame#

DynamicSpace.to_frame(*args)#

Convert cells in this space to a pandas DataFrame.

Creates a DataFrame with:

  • Columns: One column per cell in the space

  • Index: Cell parameter values (if cells share parameters)

  • Values: Computed or stored cell values

This is useful for:

  • Viewing all cell values in tabular format

  • Exporting model results to pandas for analysis

  • Comparing values across different cells

Parameters:

*args – Optional iterable of argument tuples to include. If not provided, all available values are included.

Returns:

DataFrame containing cell values

Return type:

pandas.DataFrame

Example

>>> # Space with cells foo(x) and bar(x)
>>> space.to_frame()
    foo  bar
x
1     10   20
2     11   22
3     12   24

See also

Note

Cells must have shareable parameters (same names in same order) for this to work properly.