Function csv_write
Source pub fn csv_write(
filepath: String,
headers: Vec<String>,
array: &Array2<f64>,
) -> Result<(), Box<dyn Error>>
Expand description
Function to save a 2D Array as a CSV file
§Parameters:
filepath: String - Relative path of the CSV file wrt Cargo.toml file of the project
headers: Vec<String> - Column names
array: Array2<f64> - The array to be saved
§Returns:
Result<(), Box<dyn Error>>