datatable icon indicating copy to clipboard operation
datatable copied to clipboard

Missing values are not quoted by `.to_csv()`

Open oleksiyskononenko opened this issue 3 years ago • 0 comments

The code

from datatable import dt
DT = dt.Frame(["a", None, "b"])
print(DT.to_csv(quoting="all"))

prints

'"C0"\n"a"\n\n"b"\n'

However, according to documentation, when quoting="all" all the fields should be quoted.

Expected output (the missing value should also be quoted as "")

'"C0"\n"a"\n""\n"b"\n'

oleksiyskononenko avatar Aug 17 '22 04:08 oleksiyskononenko