Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 503 Bytes

danfo.utils.md

File metadata and controls

25 lines (18 loc) · 503 Bytes
description
Utility class with useful methods

danfo.Utils

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.

{% tabs %} {% tab title="Node" %}

import { Utils } from "danfojs-node"

const utils = new Utils()

const arr = [NaN, 2.1, 3.3, 2.09]
console.log(utils.inferDtype(arr))

//output
[ 'float32' ]

{% endtab %} {% endtabs %}