sasdata.dataloader.readers.csv_reader module

CSV-specific multi-column ASCII data reader

class sasdata.dataloader.readers.csv_reader.Reader

Bases: Reader

Class to load CSV files (2, 3 or 4 columns) built off the ASCII reader.

All reading is done by the ASCIIReader. The writer calls the ASCII writer with a different separator.

__annotate_func__ = None
__annotations_cache__ = {}
__doc__ = '\nClass to load CSV files (2, 3 or 4 columns) built off the ASCII reader.\n\nAll reading is done by the ASCIIReader. The writer calls the ASCII writer with a different separator.\n'
__firstlineno__ = 11
__module__ = 'sasdata.dataloader.readers.csv_reader'
__static_attributes__ = ()
ext = ['.csv']
min_data_pts = 5
type = ['CSV files (*.csv)|*.csv']
type_name = 'CSV'
write(filename, dataset, sep=', ')

Output data csv format using the ASCII reader

Parameters:
  • filename – Full file name and path where the file will be saved

  • dataset – Data1D object that will be saved

  • sep – Separator between data items, default is a comma followed by a single space