'numpy.ndarray' object has no attribute 'random'
coco202222 opened this issue · 2 comments
coco202222 commented
Hello, does anyone know how to fix this attribute error?
In [34]: np.random.randint(0,100,size=(5,3))
AttributeError Traceback (most recent call last)
in
----> 1 np.random.randint(0,100,size=(5,3))
AttributeError: 'numpy.ndarray' object has no attribute 'random'
rougier commented
What is np
in your session? If you first import numpy as np
, does it fail too?
coco202222 commented
What is
np
in your session? If you firstimport numpy as np
, does it fail too?
thanks i got it!