Thank youNicolodi,
I hope I did not hurt you by my little fight.!!
with best regards,
Sudheer
- Original Message -
> From: Daniele Nicolodi
> To: numpy-discussion@scipy.org
> Cc:
> Sent: Friday, 10 May 2013 6:21 PM
> Subject: Re: [Numpy-discussion]
Thank you Very much,
This will help me a lot.
with best regards,
Sudheer
- Original Message -
> From: Derek Homeier
> To: Discussion of Numerical Python
> Cc:
> Sent: Friday, 10 May 2013 6:10 PM
> Subject: Re: [Numpy-discussion] printing a
***
- Original Message -
> From: Henry Gomersall
> To: Discussion of Numerical Python
> Cc:
> Sent: Friday, 10 May 2013 5:29 PM
> Subject: Re: [Numpy-discussion] printing array in tabular form
>
> On Fri, 2013
On 10.05.2013, at 2:51PM, Daniele Nicolodi wrote:
> If you wish to format numpy arrays preceding them with a variable name,
> the following is a possible solution that gives the same formatting as
> in your example:
>
> import numpy as np
> import sys
>
> def format(out, v, name):
>header =
On 10/05/2013 13:20, Sudheer Joseph wrote:
> Hi,
> I am trying to learn Python after feeling its utility in coding and
> also reading a bit aboutits potential only, please do not put words
> in to my mouth like below.
I didn't put words in your mouth, I simply quoted emails you sent to the
list a
_
> From: Daπid
> To: Discussion of Numerical Python
>
> Sent: Thursday, 9 May 2013 2:29 PM
> Subject: Re: [Numpy-discussion] printing array in tabular form
>
>
> On 9
On 10.05.2013, at 1:20PM, Sudheer Joseph wrote:
> If some one has a quick way I would like to learn from them or get a
> referecence
> where the formatting part is described which was
> my intention while posting here. As I have been using fortran I just tried
> to use it to explain my requir
On Fri, 2013-05-10 at 17:14 +0800, Sudheer Joseph wrote:
> Thank you,
> But I was looking for a format statement likw
> write(*,"(A,5F8.3)")
> with best regards,
> Sudheer
How about the following:
print('IL = ' + (('%d,' * 5)[:-1] + '\n ') * 5 % tuple(IL))
If instead of a list
>Subject: Re: [Numpy-discussion] printing array in tabular form
>
>
>On 10/05/2013 11:14, Sudheer Joseph wrote:
>
>> However writing a formatted out put looks to be bit tricky with
>> python relative to other programing languages.
>
>...
>
>> I was lo
On 10/05/2013 11:14, Sudheer Joseph wrote:
> However writing a formatted out put looks to be bit tricky with
> python relative to other programing languages.
...
> I was looking for a format statement likw write(*,"(A,5F8.3)")
Before denigrating a programming language I would make sure to have
tripod.com
***
>
> From: Daπid
>To: Discussion of Numerical Python
>Sent: Thursday, 9 May 2013 2:29 PM
>Subject: Re: [Numpy-discussion] printing array in tabular form
>
>
>On 9 May 2013 10:06,
ect: Re: [Numpy-discussion] printing array in tabular form
>
>
>On Thu, 2013-05-09 at 16:06 +0800, Sudheer Joseph wrote:
>> If I wanted to print below text in a file (for reading by another
>> program), it looks to be not an easy jobHope new developments will
>> come a
On Thu, May 9, 2013 at 1:06 AM, Sudheer Joseph wrote:
> Thank you Gomersall,
> However writing a formatted out put looks to be bit tricky with
> python relative to other programing languages.
>
this is just plain wrong -- working with text in python is as easy, or
easier, than most lang
On Thu, 2013-05-09 at 16:06 +0800, Sudheer Joseph wrote:
> If I wanted to print below text in a file (for reading by another
> program), it looks to be not an easy jobHope new developments will
> come and a userfriendly formatted out put method for pyton will
> evolve.
I don't understand what
On 9 May 2013 10:06, Sudheer Joseph wrote:
> However writing a formatted out put looks to be bit tricky with python
> relative to other programing languages.
If performance is not an issue, you could do it by hand, as you can
always do in any programming language:
savefile = open('data.txt', 'w
ssion] printing array in tabular form
>
>
>On Wed, 2013-05-08 at 10:13 +0800, Sudheer Joseph wrote:
>> However I get below error. Please tell me if any thing I am missing.
>>
>>
>> file "read_reg_grd.py", line 22, in
>> np.savetxt("file.txt&q
On Wed, 2013-05-08 at 10:13 +0800, Sudheer Joseph wrote:
> However I get below error. Please tell me if any thing I am missing.
>
>
> file "read_reg_grd.py", line 22, in
> np.savetxt("file.txt", IL.reshape(-1,5), fmt='%5d', delimiter=',')
> AttributeError: 'list' object has no attribute 'res
> From: Derek Homeier
>To: Discussion of Numerical Python
>Sent: Tuesday, 7 May 2013 6:41 PM
>Subject: Re: [Numpy-discussion] printing array in tabular form
>
>
>Dear Sudheer,
>
>On 07.05.2013, at 11:14AM, Sudheer Joseph wrote:
>
>
Dear Sudheer,
On 07.05.2013, at 11:14AM, Sudheer Joseph wrote:
> I need to print few arrays in a tabular form for example below
> array IL has 25 elements, is there an easy way to print this as 5x5 comma
> separated table? in python
>
> IL=[]
> for i in np.arange(1,bno+1):
>
Dear experts,
I need to print few arrays in a tabular form for example below
array IL has 25 elements, is there an easy way to print this as 5x5 comma
separated table? in python
IL=[]
for i in np.arange(1,bno+1):
IL.append(i)
print(IL)
20 matches
Mail list logo