-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Values not loaded correctly when reading CSV as strings. #1280
Comments
Thanks for the report, and the fix! This looks good to me! |
Thanks! Do you think that it will be an upgrade comparing to the current one? I'm more than happy to write one for xtensor. |
We can have both living together, and an additional tag / option argument in the |
@marty1885 that would be awesome! I am not too opinionated about how this should be done. I have looked at pandas's csv parser which has tons of options, and depending on the complexity, we may want to have these extra features behind an option, or in a different API... |
Well. I guess I'll code up a prototype and see how things go after that. |
I have written a nasty parser that handles quotes and comma/space in quotes properly. Currently:
Do we need the parser to be RFC compliant? Is it worth it to trade some performance for cleaner code? Also, should the function provide an option for the delimiter(s)? commit: bbc6369, function: read_csv() |
I found that values are not read correctly when reading CSV as strings using load_csv()
For example:
data.csv
and read it with.
However xtensor only loads the part before the first space character. Where it should be reading the entity of the cell. It prints
I found this bug when reading a series of datetime stored in CSV into xtensor.
The text was updated successfully, but these errors were encountered: