DataFrame.values
Return a the JavaScript array representation of the DataFrame.
danfo.DataFrame.values [source]
Returns:
return Array
Note: To get the Tensorflow tensor backing the DataFrame, you can call the .tensor property on the DataFrame.

Examples

Node
Browser
1
const dfd = require("danfojs-node")
2
3
let data = {"A": [-20.1, 30, 47.3, -20],
4
"B": [34, -4, 5, 6],
5
"C": [20, -20, 30, -40]}
6
7
let df = new dfd.DataFrame(data)
8
9
console.log(df.values)
10
Copied!
1
Copied!
Output
1
[
2
[ -20.1, 34, 20 ],
3
[ 30, -4, -20 ],
4
[ 47.3, 5, 30 ],
5
[ -20, 6, -40 ]
6
]
Copied!
Last modified 1yr ago
Copy link
Contents
Examples