in node.js environment with Danfo.js, reading .csv files is very easy with readCSV(), formerly read_csv(), as shown in the official example:
const dfd = require("danfojs-node")
dfd.readCSV("file:///home/Desktop/user_names.csv")
.then(df => {
df.head().print()
}).catch(err=>{
console.log(err);
})
However, I can't find a way to read .tsv
files.
Is there a way to read tab-delimited files with Danfo.js?
In the source I find the follwing comment:
* @param {config} (Optional). A CSV Config object that contains configurations
* for reading and decoding from CSV file(s).
But I'm new to javascript coming from R/Python, didn't know what to do from there.