Best way to read CSV data file into Mir (2d array) ndslice?
mingwu at gmail.com
Wed Sep 21 20:11:23 UTC 2022
On Wednesday, 21 September 2022 at 19:14:30 UTC, jmh530 wrote:
> I just tried doing it with `std.csv`, but my version was a bit
> awkward since it doesn't seem quite so straightforward to just
> take the result of csvReader and put it in a array. I had to
> read it in there. I also wanted to allocate the array up front,
> but to do that I needed to know how big it was and ended up
> doing two passes on reading the data, which isn't ideal.
Thanks, as you said this isn't ideal.
For Mir to catch up with numpy, being able to easily read CSV to
import data is a must to attract data scientists.
In numpy/pandas, it's just *one* liner.
I logged an issue here as a feature request:
More information about the Digitalmars-d-learn