Future support of reading first columns along/instead of first rows?
See original GitHub issueHello!
I currently extract first row and column of my worksheet by parsing through the cells, but I would like to limit the file reading so only needed data (first column and/or row) is extracted.
I already know about using XLSX.read(myFile, { sheetRows: 1 });
, but I didn’t find any issue discussing a column variant sheetColumns
. Is such a feature planned for later? Or not at all?
Thanks for your time! 😃
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Parse by columns instead of rows · Issue #335 - GitHub
Hi, I have a spreadsheet in which the headers are in the left-most column and the ... Future support of reading first columns...
Read more >Specify number of columns to read when first row is missing ...
I have data from a logger that inserts timestamps as rows within the comma separated data. I've sorted out a way to wrangle...
Read more >Freeze panes to lock rows and columns - Microsoft Support
Select View > Freeze Panes > Freeze First Column. The faint line that appears between Column A and B shows that the first...
Read more >Excel: Insuring that row headers read properly for NVDA (like ...
cell A1 (the start of the first row) to "Title". NVDA reads the column headers in the same spreadsheet, but it does not...
Read more >R: Fast and friendly file finagler - index.utf8.md
For each column sep2 can be different and is the first character in the ... Unlike read.table , it doesn't help speed 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 Free
Top 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
It’s definitely interesting but lower priority. Some notes:
Most file formats store data in row-major order. For example, in the CSV format:
The file starts with the first row of data, followed by the second row, followed by the third row, etc. For
sheetRows: 1
, the parser can stop after the end of the first row.To extract the data from the first column, the parser would have to scan almost the entire file (stopping at cell B1000000 in the last row)
.
The dual
sheetCols
parameter is interesting because some formats are column-major order. The XLS file from issue #2432 is in column-major order. BIFF8 XLS also has optional special records that let you jump around the file. This approach would not work for XLSB or XLSX.drop a comment in #475 that a column limit feature should also be supported