Why does the following numpy.random command not return array with data type of 'int' as I understand should happen from the documentation.
import numpy
b = numpy.random.randint(1,100,10,dtype='int')
type(b[1])
class 'numpy.int64'
I can't change the type using .astype() either.
Aucun commentaire:
Enregistrer un commentaire