Questions tagged [tsv-format]

For questions about importing and exporting Tab Separated Values (commonly stored as .txt files) in Mathematica.

Filter by
Sorted by
Tagged with
1 vote
0 answers
58 views

Why is Import[file, "CSV"] faster than Import[file, "TSV"]

I have a lot of data which use tabs as field separators. There are no tab characters in their fields. The data are all alphanumerical, strings are not enclosed in quotes. Theoretically ...
Adalbert Hanßen's user avatar
6 votes
1 answer
121 views

SemanticImport mangles Greek letters in column headers

Bug persisting through 13.1.0 I have a Dataset whose column headers contain Greek letters. If I export the Dataset as a csv file and then ...
Etaxon's user avatar
  • 63
5 votes
2 answers
288 views

How to speed up loading 20k lines tsv-file with complex numbers?

I have a long (20k lines) file which looks like this: ...
infinitezero's user avatar
  • 1,409
1 vote
0 answers
74 views

How can I import a txt file with both tsv and csv characteristics and plot it?

I have a problem with importing and plotting a txt data. I used this code: data=Import["C:/Users/user/Desktop/Mohammad Simulation/2nm.txt","TSV"] header=Take[data, {10, 1889}]; But, I am not able ...
newtest4 math's user avatar
3 votes
2 answers
642 views

Is there a straightforward way of naming CSV/TSV columns when importing as a dataset?

I have data in TSV (tab-separated) files. The thing is, columns do not have headers. Importing data is as easy as ds = Import["foo.tsv", {"Dataset"}]; ...
kkm -still wary of SE promises's user avatar
22 votes
4 answers
2k views

Fast MATLAB, slow Mathematica: Export a matrix as TSV

I am trying to find the best way of exporting matrices (results of a time-dependent CFD calculation). I found that .h5 is the fastest option, but h5 is not generic, i.e., I can't really open like a ...
Erdem's user avatar
  • 869