Include Empty Rows
See original GitHub issueHi,
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:
- Created 5 years ago
- Comments:13 (7 by maintainers)
Top 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 >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
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.
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?