DataFrameFactory.

for_visualization

for_visualization(visualization_id: str, auto_index: bool, on_execution_submitted: Optional[Callable[[Execution], None]], is_cancellable: bool) -> pandas.DataFrame

Creates a data frame with columns based on the content of the visualization with the provided identifier.

Parameters

nametypedescription
visualization_idstrVisualization identifier.
auto_indexboolDefault True. Enables creation of DataFrame with index depending on the contents of the visualization.
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.

Returns

typedescription
pandas.DataFrameA DataFrame instance.