Hi,
I'm just wondering what is the best way to read CSV data file into Mir (2d array) ndslice? Esp. if it can parse date into int/float.
I searched a bit, but can't find any example.
Thanks.
Thread overview |
---|
September 21, 2022 Best way to read CSV data file into Mir (2d array) ndslice? | ||||
---|---|---|---|---|
| ||||
Hi, I'm just wondering what is the best way to read CSV data file into Mir (2d array) ndslice? Esp. if it can parse date into int/float. I searched a bit, but can't find any example. Thanks. |
September 21, 2022 Re: Best way to read CSV data file into Mir (2d array) ndslice? | ||||
---|---|---|---|---|
| ||||
Posted in reply to mw | On Wednesday, 21 September 2022 at 05:31:48 UTC, mw wrote: >Hi, I'm just wondering what is the best way to read CSV data file into Mir (2d array) ndslice? Esp. if it can parse date into int/float. I searched a bit, but can't find any example. Thanks. It probably can't hurt to try the simplest approach first. ndslice assumes homogenous data, but you can put the Dates (as Date types) as part of the labels (as Data Frames). However, there's a bit to be desired in terms of getting that functionality integrated into the rest of the package [1]. |
September 21, 2022 Re: Best way to read CSV data file into Mir (2d array) ndslice? | ||||
---|---|---|---|---|
| ||||
Posted in reply to jmh530 | On Wednesday, 21 September 2022 at 13:08:14 UTC, jmh530 wrote: >On Wednesday, 21 September 2022 at 05:31:48 UTC, mw wrote: >Hi, I'm just wondering what is the best way to read CSV data file into Mir (2d array) ndslice? Esp. if it can parse date into int/float. I searched a bit, but can't find any example. Thanks. It probably can't hurt to try the simplest approach first. ndslice assumes homogenous data, but you can put the Dates (as Date types) as part of the labels (as Data Frames). However, there's a bit to be desired in terms of getting that functionality integrated into the rest of the package [1]. I just tried doing it with
|
September 21, 2022 Re: Best way to read CSV data file into Mir (2d array) ndslice? | ||||
---|---|---|---|---|
| ||||
Posted in reply to jmh530 | On Wednesday, 21 September 2022 at 19:14:30 UTC, jmh530 wrote: >I just tried doing it with 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: |