DataFrame.toExcel
Converts a DataFrame or Series to Excel file and write file to disk or download in browser.
Convert DataFrame to Excel and write to file path
const dfd = require("danfojs-node")
let data = {
Abs: [20.2, 30, 47.3],
Count: [34, 4, 5],
"country code": ["NG", "FR", "GH"],
};
let df = new dfd.DataFrame(data);
df.toExcel({ filePath: "testOut.xlsx"});Convert DataFrame to Excel and download the file in a browser
Last updated