You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let dfd = require('danfojs-node')
let df = dfd.readCSV('http://scikitjs.org/data/iris.csv')
console.log(df['target']) // ['0.0', '0.0', ..., '1.0'] instead of [0, 0, 0, 1, 1]
This is because we use Papaparse to load CSV, and by default, the dynamicTyping is set to false. To fix this we need to set dynamicTyping to true by fault.
The text was updated successfully, but these errors were encountered:
Here's an example:
let dfd = require('danfojs-node')
let df = dfd.readCSV('http://scikitjs.org/data/iris.csv')
console.log(df['target']) // ['0.0', '0.0', ..., '1.0'] instead of [0, 0, 0, 1, 1]
This is because we use Papaparse to load CSV, and by default, the dynamicTyping is set to false. To fix this we need to set dynamicTyping to true by fault.
The text was updated successfully, but these errors were encountered: