[Numpy-discussion] New numpy functions: filled, filled_like
Chris Barker - NOAA Federal
chris.barker at noaa.gov
Fri Jan 18 17:31:14 EST 2013
On Fri, Jan 18, 2013 at 2:22 PM, Matthew Brett <matthew.brett at gmail.com> wrote:
> I personally find 'fill' OK. I'd read:
>
> a = np.empty((10, 10), fill=np.nan)
>
> as
>
> "make an empty array shape (10, 10) and fill with nans"
+1
simple, does the job, and doesn't bloat the API.
-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