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

nametypedescription
index_byIndexDefOne or more labels to index by.
columnsColumnsDefDictionary mapping column name to its definition.
filter_byOptional[Union[Filter, list[Filter]]]Optional filters to apply during computation on the server.

Returns

typedescription
pandas.DataFrameA DataFrame instance.