I'm reading from a CSV file that has a lot of empty cells and I want to read in the empty cells as zero. Is there a way to do this using DelimitedReader?
I'm looking at the documentation for DelimitedReader and I see that it takes four parameters:
•sparse: Whether the the returned matrix should be constructed as sparse (true) or dense (false). Default: false. •delimiter: Number delimiter between numbers of the same line. Supports Regex groups. Default: \s (white space). •hasHeaders: Whether the first row contains column headers or not. If true, the first line will be skipped. Default: false. •formatProvider: The culture to use. It is often a good idea to use InvariantCulture, to make the format independent from the local culture. Default: null
I think I might need to use the formatProvider parameter to do this, but I'm not sure how I would use it.