Return a the JavaScript array representation of the DataFrame.
Last updated 3 years ago
Was this helpful?
danfo.DataFrame.values
Note: To get the tensor of the DataFrame, you can call the . property on the DataFrame.
const dfd = require("danfojs-node") let data = {"A": [-20.1, 30, 47.3, -20], "B": [34, -4, 5, 6], "C": [20, -20, 30, -40]} let df = new dfd.DataFrame(data) console.log(df.values)
[ [ -20.1, 34, 20 ], [ 30, -4, -20 ], [ 47.3, 5, 30 ], [ -20, 6, -40 ] ]