docplex.util.csv_utils module

Some csv utilities

docplex.util.csv_utils.encode_csv_string(text)[source]

Encode a string to be used in CSV file

Parameters:text – String to encode
Returns:Encoded string, including starting and ending double quote
docplex.util.csv_utils.write_table_as_csv(env, table, name, field_names)[source]

Writes a kpis dataframe as file which name is specified. The data type depends of extension of name.

This uses the specfied env to write data as attachments