Write the content of the array to a CSV file on disk.
The CSV file will contain one column per dimension, and a column containing
the data values.
- Parameters:
file (str
) – Path to the CSV file to be written.
- Returns:
str
– Path to the written CSV file.