This documentation is for the unstable version of GoodData, currrently in development.
For stable version, go to the latest stable version of this article.
For stable version, go to the latest stable version of this article.
DataFrameFactory.
for_visualization
for_visualization(visualization_id: str, auto_index: bool, on_execution_submitted: Optional[Callable[[Execution], None]], is_cancellable: bool, result_page_len: Optional[int]) -> pandas.DataFrame
Creates a data frame with columns based on the content of the visualization with the provided identifier.
Parameters
| name | type | description |
|---|---|---|
| visualization_id | str | Visualization identifier. |
| auto_index | bool | Default True. Enables creation of DataFrame with index depending on the contents of the visualization. |
| on_execution_submitted | Optional[Callable[[Execution], None]] | Callback to call when the execution was submitted to the backend. |
| is_cancellable | bool | Whether the execution should be cancelled when the connection is interrupted. |
| result_page_len | Optional[int] | Optional page size for result pagination. Defaults to 1000. Larger values can improve performance for large result sets. |
Returns
| type | description |
|---|---|
| pandas.DataFrame | pandas.DataFrame: A DataFrame instance. |