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.

Include Empty Rows

See original GitHub issue

Hi,

First of all thank you for the module. Its one of the rare modules that

  • support both xls and xlsx files
  • gives the data cell by cell

One problem I found is that it ignores empty lines by default. My app’s business logic requires me to pick up rows based upon user-given index values (which include empty lines).

It would be great if you could make it config based rather the current approach.

I looked into the code and found I need to comment following lines in order enable empty lines:

           // if (columnData === '') {
           //     continue;
           // }
        // Cleaning empty
        // rows = rows.filter(v => v !== null && v !== undefined);

Can you please confirm that I am not missing any other lines?

Thanks.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
DiegoZoracKycommented, Nov 6, 2018

Thanks for your answer and your PR @harshitgupta. It is already merged and published on npm (v 1.5.0)

@NunoChumbo might want to take a look.

2reactions
DiegoZoracKycommented, Aug 10, 2018

You are right. It does that by default. What do you think about a config to indicate when it should return the empty values (being the current behavior of not returning the empty the default value)?

As you are already on the right snippet of the code, would you like to implement it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Insert a Blank Row after Every Row in Excel (or Every Nth Row)
Insert a blank column to the left of the dataset. To do this, right-click on the column header of the left-most column and...
Read more >
How to add empty rows in table - Tableau Community
If you mean that you want to show empty rows in a cross-tab, then you might try using "Show Empty Rows" from the...
Read more >
How to Find and Delete Blank Rows in Microsoft Excel
Find Blank Rows Using Find · Select a column or range of cells in a column that includes blanks. · Click Find &...
Read more >
Add Empty Rows – KNIME Community Hub
Drag & drop this node right into the Workflow Editor of KNIME Analytics Platform (4.x or higher). ... Adds a certain number of...
Read more >
Add Empty Rows - NodePit
Add Empty Rows ... Adds a certain number of empty rows with missing values (or a constant) to the input table. This can...
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