On 2/11/2009 6:40 AM, A B wrote:
Hi,
How do I write a loadtxt command to read in the following file and
store each data point as the appropriate data type:
12|h|34.5|44.5
14552|bbb|34.5|42.5
dt = {'names': ('gender','age','weight','bal'), 'formats': ('i4',
'S4','f4', 'f4')}
Does this
On 3/4/2009 12:57 PM, Sturla Molden wrote:
Does this work for you?
Never mind, it seems my e-mail got messed up. I ought to keep them
sorted by date...
S.M.
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
On Tue, Feb 10, 2009 at 9:52 PM, Brent Pedersen bpede...@gmail.com wrote:
On Tue, Feb 10, 2009 at 9:40 PM, A B python6...@gmail.com wrote:
Hi,
How do I write a loadtxt command to read in the following file and
store each data point as the appropriate data type:
12|h|34.5|44.5
On Wed, Feb 11, 2009 at 6:27 PM, A B python6...@gmail.com wrote:
On Tue, Feb 10, 2009 at 9:52 PM, Brent Pedersen bpede...@gmail.com wrote:
On Tue, Feb 10, 2009 at 9:40 PM, A B python6...@gmail.com wrote:
Hi,
How do I write a loadtxt command to read in the following file and
store each data
2009/2/12 A B python6...@gmail.com:
Actually, I was using two different machines and it appears that the
version of numpy available on Ubuntu is seriously out of date (1.0.4).
Wonder why ...
See the recent post here
Hi,
How do I write a loadtxt command to read in the following file and
store each data point as the appropriate data type:
12|h|34.5|44.5
14552|bbb|34.5|42.5
Do the strings have to be read in separately from the numbers?
Why would anyone use 'S10' instead of 'string'?
dt = {'names':
On Tue, Feb 10, 2009 at 9:40 PM, A B python6...@gmail.com wrote:
Hi,
How do I write a loadtxt command to read in the following file and
store each data point as the appropriate data type:
12|h|34.5|44.5
14552|bbb|34.5|42.5
Do the strings have to be read in separately from the numbers?