[Numpy-discussion] skiprows option in loadtxt

Ryan May rmay31 at gmail.com
Wed May 20 11:16:08 EDT 2009


On Wed, May 20, 2009 at 10:04 AM, Nils Wagner
<nwagner at 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.python.org/pipermail/numpy-discussion/attachments/20090520/b545dc31/attachment.html>


More information about the NumPy-Discussion mailing list