Closed grahamalama closed 6 years ago
Never mind . . . should have dug deeper into the documentation 😳
Thanks for logging feedback.
I take it you know how to use parseFloats
now?
Also there is a dynamicTyping
option you can pass in when loading a CSV file. This will load float and boolean columns to the correct data type.
If you like the library please be sure to put a star on the repo!
Apologies in advance as I'm pretty inexperienced with JavaScript!
I had an issue reading a CSV file where columns of floats were being read in as strings. This proved frustrating when trying to
sum()
a Series, as it just returned one big concatenated string.It might be useful to add a method to the Series class to change the data type, similar to pandas.
Maybe something akin this, which I just wrote for a project, though I'd assume you want to lazily evaluate this as well: