On Oct 3, 10:36 pm, Chris Rebert wrote:
> On Sat, Oct 3, 2009 at 7:21 PM, skorpi...@gmail.com
> wrote:
> > Hi all,
>
> > I have a data structure in a list as in: [0 0 0 3 0 5 0 0 0 0 1 0 4 0
> > 5 0 0 7 0 0 0 0 0 12 0 0 4]
>
> > I would like to extrac
Hi all,
I have a data structure in a list as in: [0 0 0 3 0 5 0 0 0 0 1 0 4 0
5 0 0 7 0 0 0 0 0 12 0 0 4]
I would like to extract three list from this data:
1) runsOfZero: [3 4 5]
2) runsOfNonZero: [3 8 4]
3) SumOfRunsOfNonZero: [8 17 16]
Any suggestions would be appreciated
--
http://mail.pyt
On Oct 3, 6:35 am, Piet van Oostrum wrote:
> >>>>> "skorpi...@gmail.com" (sc) wrote:
> >sc> Hi all,
> >sc> I have some calendar data in three arrays corresponding to yr, month,
> >sc> day that I would like to convert to day since data a
Hi all,
I have some calendar data in three arrays corresponding to yr, month,
day that I would like to convert to day since data and be consistent
with changes in leap year. I've included a sample of the data
structures below. Any suggestions??? Thanks in advance
yr mnthday
On Apr 13, 1:17 pm, Mensanator wrote:
> On Apr 13, 6:36 am, "skorpi...@gmail.com" wrote:
>
>
>
> > On Apr 13, 7:13 am, Chris Rebert wrote:
>
> > > On Mon, Apr 13, 2009 at 4:05 AM, skorpi...@gmail.com
>
> > > wrote:
> > > > I am t
On Apr 13, 7:13 am, Chris Rebert wrote:
> On Mon, Apr 13, 2009 at 4:05 AM, skorpi...@gmail.com
>
> wrote:
> > I am trying to generate all possible permutations of length three from
> > elements of [0,1]. i.e in this scenario there are a total of 8
> > distinct
I am trying to generate all possible permutations of length three from
elements of [0,1]. i.e in this scenario there are a total of 8
distinct permutations:
[0,0,0]
[0,0,1]
[0,1,0]
.
.
.
[1,1,1]
Does numpy define a function to achieve this ?
Thanks in advance
--
http://mail.python.o