pdb_io.CsvWriter
- class pdb_io.CsvWriter(path_string: str, fields: Iterable[str])[source]
Bases:
objectObject for writing values to defined fields in a csv file
- Parameters:
path_string (str) – path of the output file to write
fields (Iterable[str]) – column names of csv file
- output_handle
text stream for writing output file
- Type:
IO
- fields
column names of csv file
- Type:
Iterable[str]
- __init__(path_string: str, fields: Iterable[str])[source]
Object for writing values to defined fields in a csv file
- Parameters:
path_string (str) – path of the output file to write
fields (Iterable[str]) – column names of csv file
- output_handle
text stream for writing output file
- Type:
IO
- fields
column names of csv file
- Type:
Iterable[str]
Methods
__init__(path_string, fields)Object for writing values to defined fields in a csv file
close()Close the TextIO stream
write_headings()write_line(field_values)add a row to the csv format table and write it to the output file