On Wed, Apr 28, 2010 at 8:44 AM, Travis Oliphant wrote:
>
> On Apr 25, 2010, at 8:16 AM, josef.p...@gmail.com wrote:
>
> > (some) numpy functions take floats as valid axis argument. Is this a
> > feature?
> >
> np.ones((2,3)).sum(1.2)
> > array([ 3., 3.])
> np.ones((2,3)).sum(1.99)
> >
On Apr 25, 2010, at 8:16 AM, josef.p...@gmail.com wrote:
> (some) numpy functions take floats as valid axis argument. Is this a
> feature?
>
np.ones((2,3)).sum(1.2)
> array([ 3., 3.])
np.ones((2,3)).sum(1.99)
> array([ 3., 3.])
>
np.mean((1.5,0.5))
> 1.0
np.mean(1.5,0.5)
>
On Sun, Apr 25, 2010 at 10:45 AM, Keith Goodman wrote:
> On Sun, Apr 25, 2010 at 6:16 AM, wrote:
>> (some) numpy functions take floats as valid axis argument. Is this a feature?
>>
> np.ones((2,3)).sum(1.2)
>> array([ 3., 3.])
> np.ones((2,3)).sum(1.99)
>> array([ 3., 3.])
>>
> np.
On Sun, Apr 25, 2010 at 6:16 AM, wrote:
> (some) numpy functions take floats as valid axis argument. Is this a feature?
>
np.ones((2,3)).sum(1.2)
> array([ 3., 3.])
np.ones((2,3)).sum(1.99)
> array([ 3., 3.])
>
np.mean((1.5,0.5))
> 1.0
np.mean(1.5,0.5)
> 1.5
>
> Keith pointe
(some) numpy functions take floats as valid axis argument. Is this a feature?
>>> np.ones((2,3)).sum(1.2)
array([ 3., 3.])
>>> np.ones((2,3)).sum(1.99)
array([ 3., 3.])
>>> np.mean((1.5,0.5))
1.0
>>> np.mean(1.5,0.5)
1.5
Keith pointed out that scipy.stats.nanmean has a different behavior
>>>