DataFrameFactory.
indexed
indexed(
index_by: IndexDef, columns: ColumnsDef, filter_by: Optional[Union[Filter, list[Filter]]]
) ->
pandas.DataFrame
Creates a data frame indexed by values of the label. The data frame columns will be created from either
metrics or other label values. Note that depending on composition of the labels, the DataFrame's index may or may not be unique.
Parameters
name | type | description |
---|---|---|
index_by | IndexDef | One or more labels to index by. |
columns | ColumnsDef | Dictionary mapping column name to its definition. |
filter_by | Optional[Union[Filter, list[Filter]]] | Optional filters to apply during computation on the server. |
Returns
type | description |
---|---|
pandas.DataFrame | A DataFrame instance. |