Read random lines from huge CSV file in Python
- by jbssm
I have this quite big CSV file (15 Gb) and I need to read about 1 million random lines from it.
As far as I can see - and implement - the CSV utility in Python only allows to iterate sequentially in the file.
It's very memory consuming to read the all file into memory to use some random choosing and it's very time consuming to go trough all the…