[SciPy-User] How to read CSV with missing data in numpy array?
gary ruben
gary.ruben at gmail.com
Fri May 24 05:22:18 EDT 2013
Yes,
genfromtxt('test.csv', delimiter=';')
On 24 May 2013 17:29, zetah <otrov at hush.ai> wrote:
> Trying to read this csv:
>
> 6;6;7;8;3;
> 8;10;8;;5;
> 3;5;6;7;;
>
> with this code:
>
> loadtxt('test.csv', delimiter=';', usecols=range(5))
>
> yields "ValueError: could not convert string to float: "
>
> Is there any easy way numpy to read this CSV?
>
> Thanks
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20130524/bb5e6603/attachment.html>
More information about the SciPy-User
mailing list