How to read CSV with missing data in numpy array?
![](https://secure.gravatar.com/avatar/11dcef977d3ba1c564259f49dbbcb3fb.jpg?s=120&d=mm&r=g)
May 24, 2013
3:29 a.m.
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
![](https://secure.gravatar.com/avatar/282fd25ab99e71384630e60f76bf2610.jpg?s=120&d=mm&r=g)
May 2013
5:22 a.m.
Yes, genfromtxt('test.csv', delimiter=';') On 24 May 2013 17:29, zetah <otrov@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@scipy.org http://mail.scipy.org/mailman/listinfo/scipy-user
4284
Age (days ago)
4284
Last active (days ago)
1 comments
2 participants
participants (2)
-
gary ruben
-
zetah