[Numpy-discussion] avoid a line...

eat e.antero.tammi@gmail....
Thu Mar 17 02:46:31 CDT 2011


Hi,

On Thu, Mar 17, 2011 at 9:36 AM, dileep kunjaai <dileepkunjaai@gmail.com>wrote:

> Dear sir,
>  I am try to read a file of the following format, I want to avoid the first
> line and read the remaining as 'float' .
> Please help me...
>
>
> Rain    Wind    Temp    Pr    Sal
> 0.1    1.1    0.02    0.2   0.2
> 0.5    0.       0.      0.4   0.8
> 0.5    5.5    1.5    0.5   1.5
> 3.5    0.5    1.5    5.0   2.6
> 5.1    4.1    3.2    2.3   1.5
> 4.4    0.9    1.5    2.    2.3
>
You may use loadtxt(), with skiprows argument. (See more on
http://docs.scipy.org/doc/numpy/reference/generated/numpy.loadtxt.html).

Regards,
eat

>
> --
> DILEEPKUMAR. R
> J R F, IIT DELHI
>
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20110317/c776fa10/attachment.html 


More information about the NumPy-Discussion mailing list