... """
>>> elem = etree.fromstring(tablesxml)
>>> tables, n = parse_tables(elem)
>>> tables[0].array
array([[ 1., 1., 1., 160., 370., 55.],
[ 2., 1., 1., 160., 400., 56.]])
>>> tables[0].dict
{'1:1:1:160:370': 55.0, '2:1:1:160:400': 56.0}
>>> n
1
********************
class Label(object):
********************
Class for cash flow table classifier labels
Attributes:
- label: label text
- value: label value
*************************
class Classifier(object):
*************************
Class for cash flow table classifiers
Attributes:
- level: classifier level as string
- name: classifier name as string
- ind: classifier level-variable indices a tuple: (level, variable,)
- labels: list of Label objects
- order: classifier order as list of integers
********************
class Array(object):
********************
Class for cash flow table arrays
Attributes:
- array: table values in a numpy array
- dict: table values in a dictionary
- start_date: date object
- end_date: date object