atoti.query.query_result module

class atoti.query.query_result.QueryResult(data=None, index=None, *, context=None, formatted_values, get_styler, widget_conversion_details=None)

Bases: pandas.core.frame.DataFrame

DataFrame corresponding to the result of a query.

It is indexed by the queried levels.

Note

Unless mutated in place, the __repr__(), _repr_html_(), _repr_latex_(), and _repr_mimebundle_() methods will use:

  • The caption of levels and members instead of their name.

  • The formatted value of measures instead of their value.

property style

Return a Styler object.

If the query result has not been mutated, the returned object will follow the styling included in the CellSet from which the DataFrame was converted.

Return type

Styler