use "nan" to represent np.nan in ASCIItable output

This commit is contained in:
Philip Eisenlohr 2020-03-09 18:50:27 -04:00
parent b2abaef0b3
commit bffce1ab9c
1 changed files with 1 additions and 1 deletions

View File

@ -350,4 +350,4 @@ class Table():
f = fname f = fname
for line in header + [' '.join(labels)]: f.write(line+'\n') for line in header + [' '.join(labels)]: f.write(line+'\n')
self.data.to_csv(f,sep=' ',index=False,header=False) self.data.to_csv(f,sep=' ',na_rep='nan',index=False,header=False)