Home | Trees | Indices | Help |
|
---|
|
object --+ | S3PivotTable
Class representing a pivot table of a resource
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Instance Variables | |
records All records in the pivot table as a Storage like:... |
|
empty Empty-flag (True if no records could be found) |
|
numrows The number of rows in the pivot table |
|
numcols The number of columns in the pivot table |
|
cell Array of pivot table cells in [rows[columns]]-order, each... |
|
row List of row headers, each header is a Storage like:... |
|
col List of column headers, each header is a Storage like:... |
|
totals The grand total values for each layer, as a Storage like:... |
Properties | |
Inherited from |
Method Details |
Constructor - extracts all unique records, generates a pivot table from them with the given dimensions and computes the aggregated values for each cell.
|
Total number of records in the report |
Render the pivot table data as a dict ready to be exported as GeoJSON for display on a Map. Called by S3Report.geojson()
|
Render the pivot table data as JSON-serializable dict @param layer: the layer @param maxrows: maximum number of rows (None for all) @param maxcols: maximum number of columns (None for all) @param least: render the least n rows/columns rather than the top n (with maxrows/maxcols) { labels: { layer: rows: cols: total: }, method: <aggregation method>, cells: [rows[cols]], rows: [rows[index, value, label, total]], cols: [cols[index, value, label, total]], total: <grand total>, filter: [rows selector, cols selector] } |
Convert this pivot table into an XLS file
|
Instance Variable Details |
recordsAll records in the pivot table as a Storage like: { <record_id>: <Row> } |
emptyEmpty-flag (True if no records could be found) |
numrowsThe number of rows in the pivot table |
numcolsThe number of columns in the pivot table |
cellArray of pivot table cells in [rows[columns]]-order, each cell is a Storage like: { records: <list_of_record_ids>, (<fact>, <method>): <aggregated_value>, ...per layer } |
rowList of row headers, each header is a Storage like: { value: <dimension value>, records: <list_of_record_ids>, (<fact>, <method>): <total value>, ...per layer } |
colList of column headers, each header is a Storage like: { value: <dimension value>, records: <list_of_record_ids>, (<fact>, <method>): <total value>, ...per layer } |
totalsThe grand total values for each layer, as a Storage like: { (<fact>, <method): <total value>, ...per layer } |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Mar 15 08:51:50 2019 | http://epydoc.sourceforge.net |