I am learning scipy and more specifically Numpy. I wrote the following code after properly declaring an array and received the indicated error message. Would like to know why
data = np.sin(np.arange(20)).reshape(5,4)
and = data.argmax(axis=1)
Error:
File "<stdin>", line 1
and = data.argmax(axis = 1)
^
SyntaxError: invalid syntax