credmark.cmf.types.ledger.LedgerModelOutput

DTO class LedgerModelOutput(*, data=[])[source]

Bases: IterableListGenericDTO[dict]

The return value for a ledger query.

_bigint_cols stores the list of columns of big integer. They are extracted as character from DB and converted back to int in .to_dataframe().

Show JSON schema
{
   "title": "LedgerModelOutput",
   "description": "The return value for a ledger query.\n\n_bigint_cols stores the list of columns of big integer.\nThey are extracted as character from DB and converted back to int in .to_dataframe().",
   "type": "object",
   "properties": {
      "data": {
         "title": "Data",
         "description": "A list of dicts which are the rows of data",
         "default": [],
         "type": "array",
         "items": {
            "type": "object"
         }
      }
   }
}

Fields
Parameters

data (List[dict]) –

Return type

None

field data: List[dict] = []

A list of dicts which are the rows of data

append(obj)
bigint_cols()[source]
extend(obj)
set_bigint_cols(cols)[source]
to_dataframe()[source]