danfo. convertFunctionTotransformer
Converts a function to a pipe transformer. Only available in Nodejs version.
Last updated
Converts a function to a pipe transformer. Only available in Nodejs version.
Last updated
danfo.convertFunctionTotransformer(func)
Parameters | Type | Description | Default |
---|---|---|---|
Returns:
return A pipe transformer that applies the function to each row of object.
The convertFunctionTotransformer takes a function and converts it to a Nodejs stream transformer function which can be used in combination with streamCsvTransformer to incrementally transform large files.
func
Function
A valid JavaScript function to convert to a pipe transformer.