Bases: object
Base table data reader.
Parameters: |
|
---|
Attributes Summary
comment | |
fill_values | list() -> new empty list |
start_line | |
write_spacer_lines | list() -> new empty list |
end_line | |
formats | |
fill_exclude_names | |
fill_include_names |
Methods Summary
process_lines(lines) | Strip out comment lines and blank lines from list of lines |
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. |
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. |
write(lines) |
Attributes Documentation
Methods Documentation
Strip out comment lines and blank lines from list of lines
Parameters: | lines – all lines in table |
---|---|
Returns: | list of lines |
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.
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.