[Numpy-discussion] loadtxt and usecols

Bryan Fodness bryan.fodness@gmail....
Sat Jul 12 09:07:06 CDT 2008


i would like to load my data without knowing the length, i have explicitly
stated the rows

data = loadtxt('18B180.dat', skiprows = 1, usecols =
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45))
and would like to use something like,

data = loadtxt('18B180.dat', skiprows = 1, usecols = (1,:))

the first column is the only that i do not need.

-- 
"The game of science can accurately be described as a never-ending insult to
human intelligence." - João Magueijo

"Any intelligent fool can make things bigger, more complex, and more
violent. It takes a touch of genius - and a lot of courage - to move in the
opposite direction. " -Albert Einstein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080712/cf803e23/attachment.html 


More information about the Numpy-discussion mailing list