You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When reading an excel sheet into a dataframe, it can be handy to keep a record of the corresponding row numbers in the original sheet so that you know the origin of each row in your own Julia DataFrame. I would like to use something like this:
However, because XLSX always drops all non-missing rows, the rows in the DataFrame do not necessarily originate from consecutive rows in the excel sheet, and so this numbering scheme doesn't work.
Ideally XLSX.jl would provide an option to keep all-missing rows so that I could assign row number and then drop those rows myself.
The text was updated successfully, but these errors were encountered:
After a quick glance at the source code I think this would require add a keyword argument drop_empty_rows::Bool to eachtablerow (and all functions that eventually call it) and then changing if !isempty(r) to if !(isempty(r) && drop_empty_rows).
When reading an excel sheet into a dataframe, it can be handy to keep a record of the corresponding row numbers in the original sheet so that you know the origin of each row in your own Julia DataFrame. I would like to use something like this:
However, because XLSX always drops all non-missing rows, the rows in the DataFrame do not necessarily originate from consecutive rows in the excel sheet, and so this numbering scheme doesn't work.
Ideally XLSX.jl would provide an option to keep all-missing rows so that I could assign row number and then drop those rows myself.
The text was updated successfully, but these errors were encountered: