DataFrame.values

Return a the JavaScript array representation of the DataFrame.

danfo.DataFrame.values

Note: To get the Tensorflow tensor of the DataFrame, you can call the .tensor property on the DataFrame.

Examples

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 ]
]

Last updated