Tab-Separated Values (.tsv) File Format
Tab-Separated Values
Description
Notes
Examples
Compatibility
TSV (Tab-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 tab characters.
The ImportMatrix and ExportMatrix commands can read and write TSV files.
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/tsv, text/tab-separated-values
Import data from a TSV file to a DataFrame.
Import⁡example/PlanetaryData.tsv,base=datadir
MercuryVenusEarthMarsJupiterSaturn UranusNeptuneMass (10^24 kg)0.334.875.970.642189856886.8102Diameter (km)4879121041275667921429841205365111849528Density (kg/m^3)5427524355143933132668712711638Gravity (m/s^2)3.78.99.83.723.19.08.711Escape Velocity (km/s)4.310.411.2559.535.521.323.5Rotation Period (hr)1407.6−5832.523.924.69.910.7−17.216.1Length of Day (hr)4222.628022424.79.910.717.216.1Distance from Sun (106 km)57.9108.2149.6227.9778.61433.52872.54495.1
Import data from a TSV file to a Matrix.
Import⁡example/PlanetaryData.tsv,base=datadir,output=Matrix
MercuryVenusEarthMarsJupiterSaturn UranusNeptuneMass (10^24 kg)0.334.875.970.642189856886.8102Diameter (km)4879121041275667921429841205365111849528Density (kg/m^3)5427524355143933132668712711638Gravity (m/s^2)3.78.99.83.723.19.08.711Escape Velocity (km/s)4.310.411.2559.535.521.323.5Rotation Period (hr)1407.6−5832.523.924.69.910.7−17.216.1Length of Day (hr)4222.628022424.79.910.717.216.1Distance from Sun (106 km)57.9108.2149.6227.9778.61433.52872.54495.1
Import data from a TSV file and view in the worksheet.
Import⁡example/PlanetaryData.tsv,base=datadir,output=embed
With Maple 2016, the Import command applied to TSV files now produces DataFrame objects by default.
See Also
Formats
Formats,CSV
Download Help Document