Hi everyone,
I am making a program to realize some "live" data analysis. I progressively
take the data, and write them in a file as a single column.
If i take 2D data, this would give:
data=
X Y Z
0 0 1
1 0 2
2 0 3
0 1 1
1 1 2
2 1 3
0 2 1
1 2 1
2 2 1
To plot these data, i need first to reshape th
בשם Nils Wagner
נשלח: ה 06-נובמבר-08 22:07
אל: Discussion of Numerical Python
נושא: Re: [Numpy-discussion] reshape
On Thu, 6 Nov 2008 21:50:52 +0200
"Nadav Horesh" <[EMAIL PROTECTED]> wrote:
> A correction:
>
> lines_list = [cc[i:i+8] for i in range(1, len(cc), 8)]
>
On Thu, 6 Nov 2008 21:50:52 +0200
"Nadav Horesh" <[EMAIL PROTECTED]> wrote:
> A correction:
>
> lines_list = [cc[i:i+8] for i in range(1, len(cc), 8)]
>
> Nadav
Hi Nadav,
Thank you very much. My next question;
How can I save lines_list to a file with the following
so called small field form
A correction:
lines_list = [cc[i:i+8] for i in range(1, len(cc), 8)]
Nadav
-הודעה מקורית-
מאת: [EMAIL PROTECTED] בשם Nadav Horesh
נשלח: ה 06-נובמבר-08 21:43
אל: Discussion of Numerical Python
נושא: RE: [Numpy-discussion] reshape
cc = C.ravel()
lines_list = cc[i:i+8] for i in range(1
cc = C.ravel()
lines_list = cc[i:i+8] for i in range(1, len(cc), 8)]
Nadav
-הודעה מקורית-
מאת: [EMAIL PROTECTED] בשם Nils Wagner
נשלח: ה 06-נובמבר-08 20:59
אל: Discussion of Numerical Python
נושא: Re: [Numpy-discussion] reshape
On Thu, 6 Nov 2008 19:47:19 +0200
"Nadav H
On Thu, 6 Nov 2008 19:47:19 +0200
"Nadav Horesh" <[EMAIL PROTECTED]> wrote:
> Can you clarify?
I have an array with a number of rows (nrows) and two
columns.
The first column entries correspond to x_i, the second
column contains the corresponding values y_i = f(x_i)
That array should be writt
Can you clarify?
-הודעה מקורית-
מאת: [EMAIL PROTECTED] בשם Nils Wagner
נשלח: ה 06-נובמבר-08 17:13
אל: numpy-discussion@scipy.org
נושא: [Numpy-discussion] reshape
Hi all,
What can be done if
the new shape is not compatible with the original shape ?
The number of columns is fixed and
Hi all,
What can be done if
the new shape is not compatible with the original shape ?
The number of columns is fixed and should be 8.
One could split the original array C
>>> C
array([[ 0.e+00, 1.e-01],
[ 4.1500e+01, 1.e-01],
[ 4.1600e+01,
Hi Chuck,
Charles R Harris wrote:
[clip]
> I noticed that you removed the ReST markup of the tables in sort
> documentation. I think you should leave it in.
Also the simplified table syntax
header 1 header 2 header 3
line 1a line 1b line 1c
On Sat, Apr 26, 2008 at 11:24 AM, Charles R Harris
<[EMAIL PROTECTED]> wrote:
> I noticed that you removed the ReST markup of the tables in sort
> documentation. I think you should leave it in.
I haven't tried to render it, but I think he just changed the tables
from ReST's grid table to ReST's si
On Sat, Apr 26, 2008 at 11:29 AM, Pauli Virtanen <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> The ndarray.reshape docstring claims:
>
>"Also always returns a view or raises a ValueError if that is
>impossible."
>
> whereas fromnumeric.reshape claims:
>
>"This will be a new view
Hi all,
The ndarray.reshape docstring claims:
"Also always returns a view or raises a ValueError if that is
impossible."
whereas fromnumeric.reshape claims:
"This will be a new view object if possible; otherwise, it will
be a copy."
while the code paths for b
12 matches
Mail list logo