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
Description:
I have empty lines like ",,,,," in my csv file and want to read them using doc.GetColumn<double>("...");. Empty lines should have a default value or need to be skipped. I tried using rapidcsv::LineReaderParams(true /* pSkipCommentLines */, ',' /* pCommentPrefix */, true /* pSkipEmptyLines */) but rapidcsv still tries to read the line and fails. How do I skip lines like this?
The text was updated successfully, but these errors were encountered:
Such lines cannot be ignored/skpped currently. One can however use ConverterParams and specify pHasDefaultConverter = true to have those empty cells interpreted as default values (which may be customized using pDefaultFloat and pDefaultInteger). By default they would be 0 for integers and std::numeric_limits<long double>::signaling_NaN() for floats.
I will proceed to close this issue, feel free to re-open it if above suggestion did not help. In this case, please provide a small code sample and CSV file example.
Description:
I have empty lines like ",,,,," in my csv file and want to read them using
doc.GetColumn<double>("...");
. Empty lines should have a default value or need to be skipped. I tried usingrapidcsv::LineReaderParams(true /* pSkipCommentLines */, ',' /* pCommentPrefix */, true /* pSkipEmptyLines */)
but rapidcsv still tries to read the line and fails. How do I skip lines like this?The text was updated successfully, but these errors were encountered: