__init__ constructor

On this page

init

Initializes a new instance of this class with default options.

def __init__(self):
    ...

init

Initializes a new instance of this class with specifying whether CSV data contains column names at the first line.

def __init__(self, has_headers):
    ...
Parameter Type Description
has_headers bool

Example

from groupdocs.assembly.data import CsvDataLoadOptions, CsvDataSource

options = CsvDataLoadOptions(True)  # first line contains column names
source = CsvDataSource("persons.csv", options)

See Also

On this page