[Numpy-discussion] More loadtxt() changes
Christopher Barker
Chris.Barker at noaa.gov
Tue Nov 25 12:30:10 EST 2008
Pierre GM wrote:
> FYI, I've been coding over the last couple of weeks an extension of
> loadtxt for a better support of masked data, with the option to read
> column names in a header. Please find an example below
great, thanks! this could be very useful to me.
Two comments:
"""
missing : string, optional
A string representing a missing value, irrespective of the
column where it appears (e.g., ``'missing'`` or ``'unused'``.
"""
It might be nice if "missing" could be a sequence of strings, if there
is more than one value for missing values, that are not clearly mapped
to a particular field.
"""
missing_values : {None, dictionary}, optional
A dictionary mapping a column number to a string indicating
whether the corresponding field should be masked.
"""
would it possible to specify column header, rather than number here?
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the NumPy-Discussion
mailing list