CsvDataSource constructor
Contents
[
Hide
]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):
...
Parameter | Type | Description |
---|---|---|
csv_path | str | The 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):
...
Parameter | Type | Description |
---|---|---|
csv_path | str | The path to the CSV file to be used as the data source. |
options | CsvDataLoadOptions | Options 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):
...
Parameter | Type | Description |
---|---|---|
csv_stream | io.BytesIO | The 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):
...
Parameter | Type | Description |
---|---|---|
csv_stream | io.BytesIO | The stream of CSV data to be used as the data source. |
options | CsvDataLoadOptions | Options for parsing the CSV data. |
See Also
- module aspose.words.reporting
- class CsvDataSource