Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Empty rows are placed at the bottom of the data frame #156
When importing Excel files, empty rows seem to be placed at the bottom of the resulting data frame. Here’s an example file:
The file contains two similar worksheets/tabs. Both have 8 columns (named A–H) and 8 rows. The diagonal is filled with the numbers 1 to 8 for the first worksheet. The second worksheet is similar, but is missing the number 4 and 7, resulting in row 5 and 8 being empty.
Reading the first worksheet works fine:
But reading the second worksheet results in the empty rows being removed and two new empty rows placed at the bottom:
I'm having this issue as well using data generated from a machines software (tecan machine, maggelan software). It seems for some of my data this happens, and it seems to be because something is written in the cells; opening the file and pasting another empty row into the empty rows stops the rows from being placed at the bottom, but it took a while to figure out that there was a problem in the first place.
Also, reading in the file with the java based xlsx packages read.xlsx2 does not cause this issue.