Hi,
My numpy is 1.2.1 and python is 2.5.2.
In python, I did:
from numpy import *
x=array([1,2,3])
z=x.fill(x)
print z
None
z should be filled with zero. I do not knwo why I got None. Can anyone help me
on this?
Thanks
Frank
>From the docstring:
a.fill(value) -> None. Fill the array with the scalar value.
The method modifies the array, but does not return it.
Matthieu
2008/11/18 frank wang <[EMAIL PROTECTED]>:
> Hi,
>
> My numpy is 1.2.1 and python is 2.5.2.
>
> In python, I did:
>
> from numpy import *
> x=array([
Thanks for the quick reply.
It is my fault to overlook the manual.
Frank> Date: Tue, 18 Nov 2008 19:36:23 +0100> From: [EMAIL PROTECTED]> To:
numpy-discussion@scipy.org> Subject: Re: [Numpy-discussion] fill() function
does not work.> > >From the docstring:> > a.fi