danfo.Utils
Utility class with useful methods
The Utils class holds useful utility methods, mostly used internally in the Danfojs library.
For example, in the following example, we use the inferDtype function from the utils class.
Node
1
import { Utils } from "danfojs-node"
2
3
const utils = new Utils()
4
5
const arr = [NaN, 2.1, 3.3, 2.09]
6
console.log(utils.inferDtype(arr))
7
8
//output
9
[ 'float32' ]
Copied!
Copy link