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_exec_result_id
for_exec_result_id(result_id: str, label_overrides: Optional[LabelOverrides], result_cache_metadata: Optional[ResultCacheMetadata], result_size_dimensions_limits: ResultSizeDimensions, result_size_bytes_limit: Optional[int], use_local_ids_in_headers: bool, use_primary_labels_in_attributes: bool, page_size: int, optimized: bool, default=False, grand_totals_position: Literal['pinnedBottom', 'pinnedTop', 'bottom', 'top']) -> tuple[pandas.DataFrame, DataFrameMetadata]
Retrieves a DataFrame and DataFrame metadata for a given execution result identifier.
Example of label_overrides structure:
.. code-block:: python
{
"labels": {
"local_attribute_id": {
"title": "My new attribute label"
,...
},
"metrics": {
"local_metric_id": {
"title": "My new metric label"
},...
}
}</p>
Parameters
| name | type | description |
|---|---|---|
| result_id | str | Execution result identifier. |
| label_overrides | Optional[LabelOverrides] | Label overrides for metrics and attributes. |
| result_cache_metadata | Optional[ResultCacheMetadata] | Cache metadata for the execution result. |
| result_size_dimensions_limits | ResultSizeDimensions | A tuple containing maximum size of result dimensions. Ignored when use_arrow=True. |
| result_size_bytes_limit | Optional[int] | Maximum size of the result in bytes. Ignored when use_arrow=True. |
| use_local_ids_in_headers | bool | Use local identifier in headers. Ignored when use_arrow=True. |
| use_primary_labels_in_attributes | bool | Use primary labels in attributes. Ignored when use_arrow=True. |
| page_size | int | Number of records per page. Ignored when use_arrow=True. |
| optimized | bool, default=False | Use memory optimized accumulator if True. Ignored when use_arrow=True. |
| grand_totals_position | Literal['pinnedBottom', 'pinnedTop', 'bottom', 'top'] | Position where grand totals should be placed. "pinnedBottom" and "bottom" append totals, "pinnedTop" and "top" prepend totals. Defaults to "bottom". |
Returns
| type | description |
|---|---|
| tuple[pandas.DataFrame, DataFrameMetadata] | Tuple[pandas.DataFrame, DataFrameMetadata]: Tuple holding DataFrame and DataFrame metadata. |