API Reference for Enthought Tool Suite 3.0.1
Load ASCII data from fname into an array and return the array.
The data must be regular, same number of values in every row
>>> X = loadtxt('test.dat') # data in two columns
>>> x,y,z = load('somefile.dat', usecols=(3,5,7), unpack=True)
>>> r = np.loadtxt('record.dat', dtype={'names':('gender','age','weight'),
'formats': ('S1','i4', 'f4')})
SeeAlso: scipy.io.loadmat to read and write matfiles.
| Local name | Refers to |
|---|---|
| np | numpy |
© Copyright 2002-2008 Enthought, Inc.