DataFrameFactory.

for_created_visualization

for_created_visualization(created_visualizations_response: dict, on_execution_submitted: Optional[Callable[[Execution], None]], is_cancellable: bool, optimized: bool, default=False) -> tuple[pandas.DataFrame, DataFrameMetadata]

Creates a data frame using a created visualization.

Parameters

nametypedescription
created_visualizations_responsedictCreated visualization response.
on_execution_submittedOptional[Callable[[Execution], None]]Callback to call when the execution was submitted to the backend.
is_cancellableboolWhether the execution should be cancelled when the connection is interrupted.
optimizedbool, default=FalseUse memory optimized accumulator if True; by default, the accumulator stores headers in memory as lists of dicts, which can consume a lot of memory for large results. Optimized accumulator stores only unique values and story only reference to them in the list, which can significantly reduce memory usage.

Returns

typedescription
pandas.DataFrameA DataFrame instance.