Skip lines when parsing a CSV
See original GitHub issueI regularly found and use CSV that had metadata before header and values. One example here with NOAA data of CO2 concentration in Mauna Loa station : https://www.esrl.noaa.gov/gmd/ccgg/trends/data.html Direct access to one of these CSV : https://www.esrl.noaa.gov/gmd/webdata/ccgg/trends/co2/co2_annmean_mlo.csv
It would be great to have a new option to aq.fromCSV
that would skip a desired number of line.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to skip first lines of the file with node-csv parser?
You can process the file line-by-line. I posted a code snippet in an answer earlier. You can use that var rl = readline....
Read more >How to skip rows while reading csv file using Pandas?
Here, we will discuss how to skip rows while reading csv file. We will use read_csv() method of Pandas library for this task....
Read more >How to skip the first line of a text file when reading it?
I do not need the first two lines. How to skip them? By the way, the number list is extra, not included in...
Read more >Python CSV Module - Reading Files and Skipping Rows
In this video, we'll learn how to read CSV data from a file into Python applications, using the csv module.We'll learn about the...
Read more >Skipping incomplete rows in a csv file while reading : r/learnjava
Read the file line by line, split each read line to check if needs to be skipped or kept. Hold a counter to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The
skip
andcomment
options forfromCSV
are now included in v4.6.0.From my experience with csv files, skip = n probably represents the most common case, but the possibility to deal with both scenarios would be great