16 points | by matt_d 4 days ago ago
1 comments
> import numpy
> np.array([1,2])
NameError: name 'np' is not defined
I think the article probably wanted "import numpy as np"
> import numpy
> np.array([1,2])
NameError: name 'np' is not defined
I think the article probably wanted "import numpy as np"