TSV - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Tab-Separated Values (.tsv) File Format

Tab-Separated Values

 

Description

Notes

Examples

Compatibility

Description

• 

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).

Notes

• 

Content-Type: text/tsv, text/tab-separated-values

Examples

Import data from a TSV file to a DataFrame.

Importexample/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

(1)

Import data from a TSV file to a Matrix.

Importexample/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

(2)

Import data from a TSV file and view in the worksheet.

Importexample/PlanetaryData.tsv,base=datadir,output=embed

Compatibility

• 

With Maple 2016, the Import command applied to TSV files now produces DataFrame objects by default.

See Also

Formats

Formats,CSV