[Numpy-discussion] array manupulation

2013-05-25 Thread Sudheer Joseph
Dear experts, I can do below operation in matlab but I wanted to do the same in python numpy array. I tried np.vstak  and np.concatenate but not getting the desired results. please help. I wanted to add a row of zeros to the beginning of a numpy array. What is  the available quick way. 

[Numpy-discussion] NumPy sprints at Scipy 2013, Austin: call for topics and hands to help

2013-05-25 Thread David Cournapeau
Hi there, I agreed to help organising NumPy sprints during the scipy 2013 conference in Austin. As some of you may know, Stéfan and me will present a tutorial on NumPy C code, so if we do our job correctly, we should have a few new people ready to help out during the sprints. It would be good

[Numpy-discussion] ANN: New WinPython with Python 2.7.5 and 3.3.2 (32/64bit)

2013-05-25 Thread Pierre Raybaut
Hi all, I am pleased to announce that four new versions of WinPython have been released yesterday with Python 2.7.5 and 3.3.2, 32 and 64 bits. Many packages have been added or upgraded. Special thanks to Christoph Gohlke for building most of the binary packages bundled in WinPython. WinPython

Re: [Numpy-discussion] NumPy sprints at Scipy 2013, Austin: call for topics and hands to help

2013-05-25 Thread Charles R Harris
On Sat, May 25, 2013 at 8:23 AM, David Cournapeau courn...@gmail.comwrote: Hi there, I agreed to help organising NumPy sprints during the scipy 2013 conference in Austin. As some of you may know, Stéfan and me will present a tutorial on NumPy C code, so if we do our job correctly, we

Re: [Numpy-discussion] NumPy sprints at Scipy 2013, Austin: call for topics and hands to help

2013-05-25 Thread David Cournapeau
On Sat, May 25, 2013 at 4:19 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sat, May 25, 2013 at 8:23 AM, David Cournapeau courn...@gmail.com wrote: Hi there, I agreed to help organising NumPy sprints during the scipy 2013 conference in Austin. As some of you may know, Stéfan

Re: [Numpy-discussion] array manupulation

2013-05-25 Thread Bryan Van de Ven
I'm not sure what you tried, but stack will do what you are seeking: In [7]: cc = np.ones((2,10)) * np.arange(1, 11) In [8]: cc Out[8]: array([[ 1., 2., 3., 4., 5., 6., 7., 8., 9., 10.], [ 1., 2., 3., 4., 5., 6., 7., 8., 9., 10.]]) In [9]:

Re: [Numpy-discussion] array manupulation

2013-05-25 Thread Sudheer Joseph
Thank you Brian,                      I was missing the outer brackets.!! with best regards, Sudheer   *** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21,

Re: [Numpy-discussion] array manupulation

2013-05-25 Thread Sudheer Joseph
Thank you Brian,                      Though the simple example worked for me, there appears to the some logic which I did not capture fully. I have a 11x5 array named p from which I get a cumulative sum by doing below operations. I tried transposing the zero array to match the dimension( after

Re: [Numpy-discussion] NumPy sprints at Scipy 2013, Austin: call for topics and hands to help

2013-05-25 Thread Benjamin Root
On Sat, May 25, 2013 at 12:37 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sat, May 25, 2013 at 9:51 AM, David Cournapeau courn...@gmail.comwrote: On Sat, May 25, 2013 at 4:19 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sat, May 25, 2013 at 8:23 AM, David

Re: [Numpy-discussion] NumPy sprints at Scipy 2013, Austin: call for topics and hands to help

2013-05-25 Thread Charles R Harris
On Sat, May 25, 2013 at 6:59 PM, Benjamin Root ben.r...@ou.edu wrote: On Sat, May 25, 2013 at 12:37 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sat, May 25, 2013 at 9:51 AM, David Cournapeau courn...@gmail.comwrote: On Sat, May 25, 2013 at 4:19 PM, Charles R Harris

Re: [Numpy-discussion] array manupulation

2013-05-25 Thread Sudheer Joseph
Dear Brian,                 I even tried below but no luck! In [138]: xx=np.zeros(11) In [139]: xx Out[139]: array([ 0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.]) In [147]: xx.shape Out[147]: (11,) In [140]: xx=np.array(xx)[np.newaxis] In [141]: xx.shape Out[141]: (1, 11) In [142]: