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

Ralf Gommers ralf.gommers at gmail.com
Fri Jan 18 17:35:04 EST 2013


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

> 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.
>

+1 from me too.

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


More information about the NumPy-Discussion mailing list