Data-Science-Notes icon indicating copy to clipboard operation
Data-Science-Notes copied to clipboard

1.numpy-beginner.ipynb 勘误

Open vbirdchong opened this issue 6 years ago • 1 comments

In [104]: x = [[1,3,3], [7,5,2]] print(np.argmax(x,axis=0))

这里的axis=0应修改为: axis=1 否则与说明不符

vbirdchong avatar Nov 27 '19 09:11 vbirdchong

i'm a beginner to jupyter notebooks and data science, numpy... i tried this on my jupyter notebook:

"""import numpy as np a= np.array([1,2,3,4]) print(a)"""

and it showed me this error:

NameError Traceback (most recent call last) in ----> 1 import numpy as np 2 a= np.array([1,2,3,4]) 3 print(a)

~\numpy.py in 32 { 33 "cell_type": "code", ---> 34 "execution_count": null, 35 "metadata": {}, 36 "outputs": [],

NameError: name 'null' is not defined

please help thank you.

Toyosie avatar Jan 02 '20 22:01 Toyosie