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.

result contains empty line even keepEmptyRows or skipEmptyLines defined

See original GitHub issue
Papa.parse(file, {
    delimiter: ",",
    header: true,
    keepEmptyRows:false,
    skipEmptyLines: true,
    complete: function(results) {
        console.log(results.data);
        $rootScope.$apply(function(){
            $rootScope.rowCollection = results.data;
            $rootScope.showTable = true;
        });
    }
});

I have changed configs true/false, and also removing but nothing seems to me working

may be I’m wrong

capture capture2 capture3

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

22reactions
bluej100commented, Jan 8, 2015

I would vote for incorporating some allFieldsEmpty logic. I think most people would probably expect that behavior from a skipEmptyLines flag.

1reaction
chandanpasunooricommented, Nov 28, 2014

@mholt can you remove

keepEmptyRows If true, rows that are empty will be included in the results as an empty array. >This is useful if you want to maintain line (or at least row) parity with the original input.

from http://papaparse.com/docs#config section

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is PapaParse adding an empty string to the end of its data array?
You need to use skipEmptyLines: true in parse config. For example: Papa.parse(this.csvData, {skipEmptyLines: true,}).
Read more >
Data Input - R
Data Input. Description. Reads a file in table format and creates a data frame from it, with cases corresponding to lines and variables...
Read more >
Skip empty lines on repeat in a text box - Objectif Lune
I've created a text box that has some static text and dbase field data. It iterates from line 2 to 0. Also it...
Read more >
How to remove empty lines from beginning and end of file?
Try this,. To remove blank lines from the begin of a file: sed -i '/./,$!d' filename. To remove blank lines from the end...
Read more >
[bufio.Scanner] skip empty lines - Google Groups
a nil token but a positive advance returned by the split function mean "ignore/skip this data" ? diff --git a/src/bufio/scan.go b/src/bufio/scan ...
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