O Yes You're right... It's fine now.
Merry Christmas to all!
Chao
2011/12/22 Aronne Merrelli
>
>
> On Thu, Dec 22, 2011 at 10:27 AM, Chao YUE wrote:
>
>> Dear all,
>>
>> Just a small question, how can I output different columns of ndarray in
>> different formats,
>> the manual says, "
On Thu, Dec 22, 2011 at 10:27 AM, Chao YUE wrote:
> Dear all,
>
> Just a small question, how can I output different columns of ndarray in
> different formats,
> the manual says, "A single format (%10.5f), a sequence of formats, or a
> multi-format string"
> but I use
>
> np.savetxt('new.csv',data
Dear all,
Just a small question, how can I output different columns of ndarray in
different formats,
the manual says, "A single format (%10.5f), a sequence of formats, or a
multi-format string"
but I use
np.savetxt('new.csv',data,fmt=['%i4','%f6.3'])
or
np.savetxt('new.csv',data,fmt=('%i4','%f6