Questions tagged [csv-format]
Questions about the text based file format CSV (Comma Separated Values). Questions include, but are not restricted to, importing from and exporting to this file format.
138 questions
3
votes
2
answers
215
views
How to delete line breaks in imported data
I am having a lot of issues trying to import data into mathematica and then clean the data so that mathematica recognises it. The data is a set of permutations, which I would like to express as ...
0
votes
2
answers
109
views
Regarding exporting a csv file in a particular arrangement
I have a CSV file, containing multiple columns $f_i$ , $g_i$ and $h_i$ in the following format. The columns with the same index correspond to one set of values.
...
1
vote
1
answer
84
views
Why is StringSplit dropping empty entries? [closed]
I am parsing a CSV and whenever the trailing records are empty:
StringSplit[",2,,4,,",","]
I get:
{"2&...
1
vote
1
answer
359
views
Removing empty values after importing CSV file
I am trying to import a CSV file with the following structure:
the 1st column has 15 values,
the 2nd column has 10 values,
and 3rd column has 15 values.
But when I import and try to access the 2nd ...
1
vote
1
answer
187
views
Trying to plot a CSV file and getting a blank graph
I am trying to plot two NMR line graphs superimposed to show a before and after. I was able to successfully do it with excel files but the CSV files have been giving me trouble. This is my code. I ...
2
votes
2
answers
337
views
Import complex numbers from a CSV file created in MATLAB
I export a simple CSV file created in MATLAB with complex numbers, such as:
0.1+2.1i,0.9+0.13i,0.02+0.3i
I would like to import it into Mathematica with the "i" recognized as the imaginary ...
0
votes
1
answer
143
views
Having issues creating rules from a CSV import
I'm importing a CSV file with two columns. I've done this with other files, but this one is causing issues when trying to create rules to associate IDs with the titles. Here's a sample of the ...
2
votes
2
answers
885
views
How to import, read and convert a .bib to .csv format?
I have a document in .bib format, namelad by savedrecs1.bib, obtained from Web of Science.
The document have a set of reference, of the type:
...
1
vote
2
answers
175
views
Importing an unusually formatted text file and converting to CSV
I have some data that looks like:
...
0
votes
0
answers
69
views
Data Export not working when running module using Wolframscript compared to executing in notebook
I have a Mathematica module im_solver.m that I wish to iterate through Python or a bash script. The module runs a bunch o' other modules. At the end im_solver.m executes a diagnostic.m that collects ...
0
votes
0
answers
119
views
How to export a specific csv file text?
I have a data set of text in string format as
...
1
vote
0
answers
88
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 ...
1
vote
1
answer
218
views
Graph blockchain transaction data
I am new to Mathematica, and i am trying to Graph some blockchain transaction data. I would like the Addresses "From" & "To" to be the Nodes/Vertices, and the edges to be a ...
2
votes
1
answer
154
views
How to convert a CSV entry from a String to an Expression?
I have a list that looks like this:
{{"74.28300000000003,90.32258064516131"},{"75.06400000000004,92.90322580645163"}}
To be able to use these ...
0
votes
0
answers
212
views
ListLinePlot: Options expected (instead of ImportCSVToDataset
I have the following code
...