This documentation is for an older version of GoodData.
Go to the latest version of this article.
DataFrameFactory.
for_exec_def
for_exec_def(
exec_def: ExecutionDefinition, label_overrides: Optional[LabelOverrides], result_size_dimensions_limits: ResultSizeDimensions, result_size_bytes_limit: Optional[int], page_size: int
) ->
tuple[pandas.DataFrame, DataFrameMetadata]
Creates a data frame using an execution definition.
Each dimension may be sliced by multiple labels. The factory will create MultiIndex for the dataframe's row index and the columns. 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" },... } }
Parameters
name | type | description |
---|---|---|
exec_def | ExecutionDefinition | Execution definition. |
label_overrides | Optional[LabelOverrides] | Label overrides for metrics and attributes. |
result_size_dimensions_limits | ResultSizeDimensions | A tuple containing maximum size of result dimensions. |
result_size_bytes_limit | Optional[int] | Maximum size of result in bytes. |
page_size | int | Number of records per page. |
Returns
type | description |
---|---|
Tuple[pandas.DataFrame, DataFrameMetadata] | Tuple holding DataFrame and DataFrame metadata. |