Better handling of column lines with all values at NA

This commit is contained in:
Celine Mercier
2019-08-27 20:20:26 +02:00
parent ae5f42c260
commit 3d1b2e8ed9
2 changed files with 10 additions and 2 deletions

View File

@ -56,9 +56,11 @@ cdef class HeaderFormat:
for k in ktags:
if k in tags:
value = data[k]
if value is None:
if value is None or (isinstance(value, Column_line) and value.is_NA()):
if self.printNAKeys:
value = self.NAString
else:
value = None
else:
if type(value) == Column_line:
value = value.bytes()