How to save data into csv file in dnotebook?
See original GitHub issueHi 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:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@Sanchayata I’ll look into this issue and get back. Thanks for raising this issue
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