question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Skip lines when parsing a CSV

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jheercommented, May 12, 2021

The skip and comment options for fromCSV are now included in v4.6.0.

1reaction
ericemc3commented, May 11, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found