CsvDataSource constructor

CsvDataSource(csv_path)

Creates a new data source with data from a CSV file using default options for parsing CSV data.

def __init__(self, csv_path: str):
    ...
ParameterTypeDescription
csv_pathstrThe path to the CSV file to be used as the data source.

CsvDataSource(csv_path, options)

Creates a new data source with data from a CSV file using the specified options for parsing CSV data.

def __init__(self, csv_path: str, options: aspose.words.reporting.CsvDataLoadOptions):
    ...
ParameterTypeDescription
csv_pathstrThe path to the CSV file to be used as the data source.
optionsCsvDataLoadOptionsOptions for parsing the CSV data.

CsvDataSource(csv_stream)

Creates a new data source with data from a CSV stream using default options for parsing CSV data.

def __init__(self, csv_stream: io.BytesIO):
    ...
ParameterTypeDescription
csv_streamio.BytesIOThe stream of CSV data to be used as the data source.

CsvDataSource(csv_stream, options)

Creates a new data source with data from a CSV stream using the specified options for parsing CSV data.

def __init__(self, csv_stream: io.BytesIO, options: aspose.words.reporting.CsvDataLoadOptions):
    ...
ParameterTypeDescription
csv_streamio.BytesIOThe stream of CSV data to be used as the data source.
optionsCsvDataLoadOptionsOptions for parsing the CSV data.

See Also