On 8/3/2010 5:40 PM, Robert Faryabi wrote:
> I'm using Tabular Package for manipulating tab-delimited data.
> There is a small problem that I cannot get my head around it.
>
> When I construct my tabarray from file, the blank fields are replaced by 
> "nan".
> Does any one knows how to just keep them as empty string (ie. ' ')?

My understanding is that ``tabular`` uses NumPy arrays (e.g., float arrays).
So nan is natural for missing data. If you are concerned about writing out
data as a table, substituting for nans, you could try econpy's table.py::

        http://code.google.com/p/econpy/source/browse/trunk/utilities/table.py

(See the labeler example in the module docstring.)

fwiw,

Alan Isaac

_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to