3 ms·
> import numpy > np.array([1,2]) NameError: name 'np' is not defined I think the article probably wanted "import numpy as np"
by voidUpdate 3mo ago
> import numpy
> np.array([1,2])
NameError: name 'np' is not defined
I think the article probably wanted "import numpy as np"
- gregdaniels421 3mo agoI mean it was part of a picture, and `import numpy as np` is literally used everywhere. The rest of the article seems generally accurate, and not too AI-y
- ngoldbaum 2mo agoThanks for pointing that out, I’ll fix that.