Options for CSV output. The options object is passed directly to PapaParse.unparse, please see PapaParse docs for additional options.
Returns a ICsvSerializer that represents the dataframe for serialization in the CSV format. Call writeFile or writeFileSync to output the CSV data to a text file.
Treat the dataframe as JSON data for purposes of serialization. This is the first step you need in serializing a dataframe to a JSON data file.
Returns a IJsonSerializer that represents the dataframe for serialization in the JSON format. Call writeFile or writeFileSync to output the JSON data to a text file.
Read a file asynchronously from the file system. Works in Nodejs, doesn't work in the browser.
The path to the file to read.
Returns an object that represents the file. Use parseCSV or parseJSON to deserialize to a DataFrame.
Read a file synchronously from the file system. Works in Nodejs, doesn't work in the browser.
The path to the file to read.
Returns an object that represents the file. Use parseCSV or parseJSON to deserialize to a DataFrame.
Generated using TypeDoc
Treat the dataframe as CSV data for purposes of serialization. This is the first step you need in serializing a dataframe to a CSV data file.
df.asCSV().writeFileSync("my-data-file.csv");await df.asCSV().writeFile("my-data-file.csv");const options = { ... }; await df.asCSV(options).writeFile("my-data-file.csv");