Formatters Reference¶
Formatters¶
-
class
cubes.
CrossTableFormatter
(indent=None)¶ Creates a cross-table formatter for JSON output.
Arguments:
- indent – output indentation
If aggregates are put on rows or columns, then respective row or column is added per aggregate. The data contains single aggregate values.
If aggregates are put in the table as cells, then the data contains tuples of aggregates in the order as specified in the aggregates argument of format() method.
-
class
cubes.
HTMLCrossTableFormatter
(table_style=None)¶ Create a simple HTML table formatter. See CrossTableFormatter for information about arguments.
See also
- Data Formatters
- Formatters documentation.