danfo.readExcel
Reads a JSON file from local or remote location into a DataFrame.
Parameters
Type
Description
Example
const dfd = require("danfojs-node")
const path = require("path")
let local_xcel = path.join(process.cwd(), "data", "testexcel.xlxs")
async function load_process_data() {
let df = await dfd.readExcel(local_xcel)
df.head().print()
}
load_process_data()<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/bundle.min.js"></script>
<title>Document</title>
</head>
<body>
<script>
const remote_url = 'https://file-examples-com.github.io/uploads/2017/02/file_example_XLS_100.xls';
dfd.readExcel(remote_url).then(df => {
df.head().print()
})
</script>
</body>
</html>Reading an input file object in the browser
Last updated