Bases: object
Base table data reader.
Parameters: |
|
---|
Attributes Summary
comment | |
end_line | |
fill_exclude_names | |
fill_include_names | |
start_line | |
write_spacer_lines | list() -> new empty list |
Methods Summary
get_data_lines(lines) | Set the data_lines attribute to the lines slice comprising the table data values. |
get_str_vals() | Return a generator that returns a list of column values (as strings) for each data line. |
masks(cols) | Set fill value for each column and then apply that fill value In the first step it is evaluated with value from fill_values applies to which column using fill_include_names and fill_exclude_names. |
process_lines(lines) | Strip out comment lines and blank lines from list of lines |
write(lines) |
Attributes Documentation
Methods Documentation
Set the data_lines attribute to the lines slice comprising the table data values.
Return a generator that returns a list of column values (as strings) for each data line.
Set fill value for each column and then apply that fill value
In the first step it is evaluated with value from fill_values applies to which column using fill_include_names and fill_exclude_names. In the second step all replacements are done for the appropriate columns.
Strip out comment lines and blank lines from list of lines
Parameters: | lines – all lines in table |
---|---|
Returns: | list of lines |