question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to save data into csv file in dnotebook?

See original GitHub issue

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);

})`

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
AceTheCreatorcommented, Jan 17, 2022

@Sanchayata I’ll look into this issue and get back. Thanks for raising this issue

1reaction
Sanchayatacommented, Jan 15, 2022

I tried that but in dnotebook it is not giving me any output or downloading anything. Can you suggest what might be the issue? @risenW

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to export data frame in Jupyter as a csv file - Stack Overflow
to_csv () function from pandas to export your data in CSV . Here's how you can save data in desktop df.to_csv("<path to desktop...
Read more >
Save a workbook to text format (.txt or .csv) - Microsoft Support
Open the workbook you want to save. · Click File > Save As. · Pick the place where you want to save the...
Read more >
Importing and exporting CSV files in Python | by Kasia Rachuta
The dataframe is exported as a CSV (note: it will be in the same file as the IPython notebook you're working on). dframe.to_csv(“file_name.csv”,...
Read more >
How to read csv files in Jupyter Notebook - Kaggle
save the csv file in your directory. i.e where you store the file · ///// code//// csv.file=pd.read_csv('directory/ csv stored file name') csvfile.
Read more >
How to Export Pandas DataFrame to a CSV File
Pandas DataFrame Write To CSV Using df.to_csv(). Once we have the data in dataframe, we can write to csv file with df.to_csv ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found