Comma-Separated Values (.csv) File Format
Comma-Separated Values
Description
Notes
Examples
Compatibility
CSV (Comma-Separated Values) is a simple text-based format for tabular data in which rows of data appear on subsequent lines and columns are delimited by commas.
The ImportMatrix command recognizes two variants of CSV files, standard CSV and Microsoft CSV. For details on the differences between these formats, see sscanf.
The ExportMatrix command can write tabular data to the CSV format.
The general-purpose commands Import and Export also support this format.
The default output from Import for this format is a DataFrame. To produce a Matrix, use Import(...,output=Matrix).
Content-Type: text/csv, text/comma-separated-values
Import a CSV file as a DataFrame.
Import⁡example/timedata.csv,base=datadir
Import a CSV file as a Matrix.
Import⁡example/timedata.csv,base=datadir,output=Matrix
Export 100 random three-dimensional points to a CSV file in the home directory of the current user.
P≔LinearAlgebra:-RandomMatrix⁡100,3
Export⁡points.csv,P,base=homedir
1025
With Maple 2016, the Import command applied to CSV files now produces DataFrame objects by default.
See Also
ExportMatrix
Formats
Formats,tsv
ImportMatrix
sscanf
Download Help Document