[Numpy-discussion] New numpy functions: filled, filled_like

Ralf Gommers ralf.gommers@gmail....
Fri Jan 18 16:35:04 CST 2013


On Fri, Jan 18, 2013 at 11:31 PM, Chris Barker - NOAA Federal <
chris.barker@noaa.gov> wrote:

> On Fri, Jan 18, 2013 at 2:22 PM, Matthew Brett <matthew.brett@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.
>

+1 from me too.

Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20130118/363762f5/attachment.html 


More information about the NumPy-Discussion mailing list