Skip to content

How to save data into csv file in dnotebook? #8

@cdjim

Description

@cdjim

Hi there, thanks for creating this project and making data analysis easier in the JavaScript world.

I am cleaning up some data and would like to save the result into local file, e.g. csv format. Does dnotebook supports this and how?

Using Danfo.js, DataFrame.to_csv could save the result to local drive. But in dnotebook, there is no any files saved after execute to_csv. Below is the my code.

`var data = {
"Abs": [20.2, 30, 47.3] ,
"Count": [34, 4, 5] ,
"country code": ["NG", "FR", "GH"]
}
let df = new dfd.DataFrame(data)
df.to_csv("./try_data.csv").then((csv) => {
console.log(csv);

}).catch((err) => {

console.log(err);

})`

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