|
|
||
|
|
| Mathematica Import/Export Format |
| MIME type: text/comma-separated-values, text/csv CSV tabular data format. Stores records of numerical and textual information as lines, using commas to separate fields. Commonly used in spreadsheet applications as an exchange format. CSV is an acronym for Comma-Separated Values. Plain text format. Similar to TSV. |
| "Elements" | list of elements and options available in this file | |
| "Rules" | full list of rules for each element and option | |
| "Options" | list of rules for options, properties and settings |
| "Data" | two-dimensional array, representing the rows and columns of a .csv file | |
| "Grid" | table data as a Grid object |
| Alignment | None | how data is aligned within table columns | |
| CharacterEncoding | "UTF8" | raw character encoding used in the file |
| CharacterEncoding | "ASCII" | raw character encoding used in the file |
| "EmptyField" | "" | how to represent empty fields | |
| "TextDelimiters" | Automatic | string or list of strings used to delimit non-numeric fields |
| "CurrencyTokens" | {{"$", " | currency units to be skipped when importing numerical values | |
| "DateStringFormat" | None | date format, given as a DateString specification | |
| "EmptyField" | "" | how to represent empty fields | |
| "IgnoreEmptyLines" | False | whether to ignore empty lines | |
| "Numeric" | True | whether to import data fields as numbers if possible | |
| "NumberSigns" | {"-","+"} | strings to use for signs of negative and positive numbers | |
| "HeaderLines" | 0 | number of lines to skip at the beginning of the file |
| "TableHeadings" | None | headings for table columns and rows |
| None | no labels | |
| Automatic | gives successive integer labels for columns and rows | |
| {"col1","col2",...} | list of column labels | |
| {rhead,chead} | specifies separate labels for the rows and columns |
Import a CSV file, showing the first 10 entries:
Import this file, specifying what format to use for parsing dates:
Read all data from the file and plot it using DateListPlot:
Mathematica automatically converts expressions to a list of lists when exporting to CSV:
| |||||||||||||||||||||||
| © 2008 Wolfram Research, Inc. |