tables.
for_visualization
for_visualization(workspace_id: str, visualization: Visualization)
Get data as an ExecutionTable from the given visualization.
Parameters
name | type | description |
---|---|---|
workspace_id | string | Workspace identification string e.g. "demo" |
visualization | Visualization | Visualization object, representing a visualization. |
Returns
type | description |
---|---|
ExecutionTable | Visualization data wrapper object. |
Example
# Get visualization
campaign_spend = sdk.visualizations.get_visualization(workspace_id="123", visualization_id="campaign_spend")
# Get the visualization as Execution Table
sdk.tables.for_visualization(workspace_id="123", visualization=campaign_spend)
# ExecutionTable(
# response=Execution(
# workspace_id=demo,
# result_id=c3899bb07edee259331707f817d710c80218b1ef
# ),
# columns=[
# '291c085e7df8420db84117ca49f59c49',
# 'd9dd143d647d4d148405a60ec2cf59bc',
# 'd319bcb2d8c04442a684e3b3cd063381'
# ],
# rows=143
# )