Skip to content

Error: File format not supported - when creating dataframe in Node-RED function node #206

@vinaysudani

Description

@vinaysudani

const dfd = require("danfojs-node"); json_data = [ { A: 0.4612, B: 4.28283, C: -1.509, D: -1.1352 }, { A: 0.5112, B: -0.22863, C: -3.39059, D: 1.1632 }, { A: 0.6911, B: -0.82863, C: -1.5059, D: 2.1352 }, { A: 0.4692, B: -1.28863, C: 4.5059, D: 4.1632 }, ]; df = new dfd.DataFrame(json_data); df.print();

This code snippet produces expected result when running with node.js. when running the code with node-red function node it throws an error - "Error: File format not supported".

The issue is described in detail on this thread on the node-red forum.
https://discourse.nodered.org/t/error-while-executing-code-with-function-node/46443

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions