[Numpy-discussion] skiprows option in loadtxt

Ryan May rmay31@gmail....
Wed May 20 10:16:08 CDT 2009


On Wed, May 20, 2009 at 10:04 AM, Nils Wagner
<nwagner@iam.uni-stuttgart.de>wrote:

> Hi all,
>
> Is the value of skiprows in loadtxt restricted to values
> in [0-10] ?
>
> It doesn't work for skiprows=11.


Works for me:

s = '\n'.join(map(str,range(20)))
from StringIO import StringIO
np.loadtxt(StringIO(s), skiprows=11)

The last line yields, as expected:
  array([ 11.,  12.,  13.,  14.,  15.,  16.,  17.,  18.,  19.])

This is with 1.4.0.dev6983.  Can we see code and data file?

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
Sent from Norman, Oklahoma, United States
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20090520/b545dc31/attachment.html 


More information about the Numpy-discussion mailing list