Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
vinaysudani opened this issue May 29, 2021 · 3 comments · Fixed by #208
Closed

Comments

@vinaysudani
Copy link

vinaysudani commented May 29, 2021

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

@vinaysudani vinaysudani changed the title Error: File format not supported - when creating dataframe with Node-RED Error: File format not supported - when creating dataframe in Node-RED function node May 29, 2021
@vinaysudani
Copy link
Author

A workaround to the issue is also mentioned on the same thread.
https://discourse.nodered.org/t/error-while-executing-code-with-function-node/46443/7?u=vinaysudani

risenW added a commit that referenced this issue May 30, 2021
risenW added a commit that referenced this issue May 30, 2021
@risenW
Copy link
Member

risenW commented May 30, 2021

Thanks for raising this issue and linking a solution.

FIXED: #208

@vinaysudani
Copy link
Author

Thanks for looking into it and quickly applying it to the source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants