gooddata_pandas.data_access.compute_and_extract

gooddata_pandas.data_access.compute_and_extract(sdk: GoodDataSdk, workspace_id: str, columns: ColumnsDef, index_by: Optional[IndexDef] = None, filter_by: Optional[Union[Filter, list[Filter]]] = None) tuple[dict, dict]

Convenience function to drive computation & data extraction on behalf of the series and data frame factories.

Given data columns and index columns, this function will create AFM execution and then read the results and populate data and index dicts.

For each column in columns, the returned data will contain key under which there is array of data for that column For each index in index_by, the returned data will contain key under which there is array with data to construct the index. When there are multiple indexes, feed the indexes to MultiIndex.from_arrays().

Note that as convenience it is possible to pass just single index. in that case the index dict will contain exactly one key of ‘0’ (just get first value from dict when consuming the result).