Greetings everyone,
I am dealing with a very large CSV file, and I would like to only read specific parts of it and import them as a matrix.
Effectively, I want something like:
using DelimitedFiles
data = readdlm("myfile.csv")[n:m,:]
where “n” is the 1st row and “m” is the last row I’m interested in.
If I understand correcly, the code above loads the whole thing in the memory, which is not good if your data file is a few million rows long.
This is also going to be part of a loop, where in each iteration I load a different chunk from the csv, so performance matters.
What would be the most efficient and simple way to do this?