It would be helpful to add a :header_row option to the reading of CSV files. And that this is separate from the :skip_rows option.
It is not uncommon, especially when working with scientific equipment that the header might not be in the first row and also that there might be non-data rows after it.
Of course reading this is not complex. Just use skip_rows: 1 and then delete the first two rows in the dataframe. But this is such a common pattern in scientific data that it might be worth considering supporting it inside the read_csv/2 function.
Of course I would also love to be able to save the units row as a series attribute. But that is a discussion for another issue. 😉
It would be helpful to add a
:header_row
option to the reading of CSV files. And that this is separate from the:skip_rows
option. It is not uncommon, especially when working with scientific equipment that the header might not be in the first row and also that there might be non-data rows after it.As an example I point to the eddy covariance data example.
Of course reading this is not complex. Just use
skip_rows: 1
and then delete the first two rows in the dataframe. But this is such a common pattern in scientific data that it might be worth considering supporting it inside theread_csv/2
function.Of course I would also love to be able to save the units row as a series attribute. But that is a discussion for another issue. 😉