iode.TableLine.line_type
- property TableLine.line_type: str
Type of the table line. Possible values are TITLE, CELL, SEP, MODE, FILES or DATE.
- Returns:
- str
Examples
>>> from iode import SAMPLE_DATA_DIR >>> from iode import tables, Table >>> tables.load(f"{SAMPLE_DATA_DIR}/fun.tbl") Loading .../fun.tbl 46 objects loaded >>> table = tables["ANAPRIX"] >>> table DIVIS | 1 | TITLE | "Analyse des prix" ----- | --------------------------------------------------------------- CELL | | "#s" ----- | --------------------------------------------------------------- CELL | "GAP_" | GAP_ CELL | "dln (PC/(1+ITCR))-dln AOUC" | 100*(dln (PC/(1+ITCR))-dln AOUC) nb lines: 6 nb columns: 2 language: 'ENGLISH' gridx: 'MAJOR' gridy: 'MAJOR' graph_axis: 'VALUES' graph_alignment: 'LEFT'
>>> table[0] Analyse des prix >>> table[0].line_type 'TITLE'
>>> table[4] ('"GAP_"', 'GAP_') >>> table[4].line_type 'CELL'