Can't read csv file with danfojs readCSV

Hi everybody!

I’m using Tensorflow.js and trying to load a csv file with Danfojs readCSV method. My code is below:

const dfd = require('danfojs-node')

dfd.readCSV("train.csv").then(df => {
    console.log('hi')
    df.describe().print()
}).catch((erro) => {
    console.log(erro)
})

If I run this code in VS Code, it outputs nothing.

If I run the code in Node command line, I get the following output:

Promise {
  <pending>,
  [Symbol(async_id_symbol)]: 588,
  [Symbol(trigger_async_id_symbol)]: 584,
  [Symbol(destroyed)]: { destroyed: false }
}

I’ve noted that readCSV show no error if I use an empty string as argument.

What am I doing wrong?

Hi @Alessandro_Pereira_R ,

I ran the same code you shared, and I’m getting the expected output with df.describe().

Output:

I’m using this dataset: https://web.stanford.edu/class/archive/cs/cs109/cs109.1166/stuff/titanic.csv

Could you double-check the code and verify if the problem has been resolved?

Thank You!!