[Numpy-discussion] skiprows option in loadtxt

Nils Wagner nwagner at iam.uni-stuttgart.de
Wed May 20 11:31:38 EDT 2009


On Wed, 20 May 2009 10:16:08 -0500
  Ryan May <rmay31 at gmail.com> wrote:
> 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

Hi all,

My fault. Sorry for the noise.

Nils



More information about the NumPy-Discussion mailing list