n 22/05/2014 00:37, numpy-discussion-requ...@scipy.org wrote:
> > Message: 4 Date: Wed, 21 May 2014 18:32:30 -0400 From: Warren
> > Weckesser Subject: Re: [Numpy-discussion]
> > Easter Egg or what I am missing here? To: Discussion of Numerical
> > Python Message-ID:
> >
On 22/05/2014 00:37, numpy-discussion-requ...@scipy.org wrote:
> Message: 4 Date: Wed, 21 May 2014 18:32:30 -0400 From: Warren
> Weckesser Subject: Re: [Numpy-discussion]
> Easter Egg or what I am missing here? To: Discussion of Numerical
> Python Message-ID:
>
> Conten
On 5/21/14, Siegfried Gonzi wrote:
> Please would anyone tell me the following is an undocumented bug
> otherwise I will lose faith in everything:
>
> ==
> import numpy as np
>
>
> years = [2004,2005,2006,2007]
>
> dates = [20040501,20050601,20060801,20071001]
>
> for x in years:
>
> print 'y
On Wed, May 21, 2014 at 12:38 PM, alex wrote:
> > years = [2004,2005,2006,2007]
> >
> > dates = [20040501,20050601,20060801,20071001]
> >
> > for x in years:
> >
> > print 'year ',x
> >
> > xy = np.array([x*1.0e-4 for x in dates]).astype(np.int)
> >
> > print 'year ',x
>
did you
On Wed, May 21, 2014 at 3:29 PM, Siegfried Gonzi
wrote:
> Please would anyone tell me the following is an undocumented bug
> otherwise I will lose faith in everything:
>
> ==
> import numpy as np
>
>
> years = [2004,2005,2006,2007]
>
> dates = [20040501,20050601,20060801,20071001]
>
> for x in yea
Please would anyone tell me the following is an undocumented bug
otherwise I will lose faith in everything:
==
import numpy as np
years = [2004,2005,2006,2007]
dates = [20040501,20050601,20060801,20071001]
for x in years:
print 'year ',x
xy = np.array([x*1.0e-4 for x in dates]).a