I have imported lots of files with the command Import[ “file.csv”, “Tabular”] and it worked very well until one day the table generated did not have the first row as headers.
This is a simplified version of my CSV file.
| Code | Type | project |
|---|---|---|
| aaff223 | donnor | no |
| bbnmms233 | xyz | no |
| skjhkjs | xxx | no |
In order to make it work, I had to use the following commands:
ToTabular[
Import[“file.csv”],
“Rows”,
<|“HeaderRows” → 1|>
]
I discovered that if I put Integers instead of Text in one of the rows Import[ “file.csv”, “Tabular”] worked just fine, as always!!!
I am using Wolfram Mathematica 15.0