I get this result:
[[-1.]
[ 2.]
[-4.]]
and no error.
[Edit]
An online search suggests that it’s caused by a filename conflict.
Is one of your files called numbers.py? It might be finding that one instead of numpy’s numbers.py.
I get this result:
[[-1.]
[ 2.]
[-4.]]
and no error.
[Edit]
An online search suggests that it’s caused by a filename conflict.
Is one of your files called numbers.py? It might be finding that one instead of numpy’s numbers.py.