Effacer les filtres
Effacer les filtres

How to handle big csv files

7 vues (au cours des 30 derniers jours)
Ancalagon8
Ancalagon8 le 1 Sep 2018
Rouvert : Ancalagon8 le 21 Nov 2018
I have huge .csv files comming daily and i want to know how i can handle them. For the moment, only to have an idea, i run a python script first in order to decrease the size by averaging the file. Is splitting the big file the only option i have?
P.S. one line of my file looks like:
00:00:0;0.0;0.00540500736377

Réponses (1)

Walter Roberson
Walter Roberson le 1 Sep 2018
Another approach is to fopen() the file, and textscan() using a repeat count (a number as the parameter after the format string) to control how many lines are read at a time; you would read a chunk, process it, go back to read another chunk, and so on.

Catégories

En savoir plus sur Standard File Formats dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by