[Issue 17109] std.csv chokes on empty columns when parsing to struct

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jan 19 09:03:46 PST 2017


https://issues.dlang.org/show_bug.cgi?id=17109

--- Comment #2 from Jack Stouffer <jack at jackstouffer.com> ---
(In reply to Sophie from comment #1)
> I think this is the correct behavior. The empty string is not valid as a
> floating point value, nan or otherwise.

This is going to sound dramatic, but not correctly handling missing values in a
CSV makes std.csv dead on arrival. The truth of the matter is that missing
values in CSVs are the rule and not the exception.

Python's pandas does this correctly, and so should we.

--


More information about the Digitalmars-d-bugs mailing list