Skip to main content

ReportResult

GitHub source

ReportResult

evo.blockmodels.typed.report.ReportResult

A result from running a report.

Contains the calculated values for each category and cut-off combination.

to_dataframe​

to_dataframe(include_status: bool = False) -> pd.DataFrame

Convert the report result to a pandas DataFrame.

Returns a DataFrame with one row per category/cut-off combination, containing the aggregated values for each report column.

Each cell in the report is a ReportCell (\{"value": ..., "status": ...\}). By default only the numeric value is placed in the DataFrame (with None where a value could not be aggregated), keeping the output the same shape as previous SDK versions. Set include_status=True to add a companion "\{column\}:status" column exposing each cell's status. The : separator is used because it can never appear in a column's label: Block Model Service column/group titles cannot contain :, and qualified (grouped) titles are joined with ▸ instead, so the companion column name can never collide with a real column.

Parameters:

NameTypeDescriptionDefault
include_statusboolWhen True, add a status column alongside each value column.False

Returns:

TypeDescription
DataFrameDataFrame with report results.

__repr__​

__repr__() -> str

Return a string representation of the report result.

Was this page helpful?