BearofNH is right the correct usage is ...
import numpy
qq = [1, 2, 3]
ar = numpy.array(qq, dtype='f')
print(ar) # [ 1. 2. 3.]
It is always easy to run a little test program.
It might also be easier to use something like this ...
qq = [x for x in bird if x.isdigit()]
vegaseat
DaniWeb's Hypocrite
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
Take a look at:
help(numpy.set_printoptions)
Ene Uran
Posting Virtuoso
1,723 posts since Aug 2005
Reputation Points: 625
Solved Threads: 213