write_csv#

ansys.aedt.core.generic.file_utils.write_csv(output_file: str, list_data: list, delimiter: str = ',', quote_char: str = '|', quoting: int = 0) bool#

Write data to a CSV .

Parameters:
output_filestr

Full path and name of the file to write the data to.

list_datalist

Data to be written to the specified output file.

delimiterstr

Delimiter. The default value is "|".

quote_charstr

Quote character. The default value is "|"

quotingint

Quoting character. The default value is "csv.QUOTE_MINIMAL". It can take one any of the following module constants:

  • "csv.QUOTE_MINIMAL" means only when required, for example, when a

    field contains either the quote char or the delimiter

  • "csv.QUOTE_ALL" means that quotes are always placed around fields.

  • "csv.QUOTE_NONNUMERIC" means that quotes are always placed around

    fields which do not parse as integers or floating point numbers.

  • "csv.QUOTE_NONE" means that quotes are never placed around fields.