一、创建ndarry
图片发自简书App
obj.astype(dtype):转化其他detype
obj.reshape(a,b):转化为a*b形式
图片发自简书App
np.where(cond,x,y):if cond: re=x else re=y
图片发自简书App
一、创建ndarry
obj.astype(dtype):转化其他detype
obj.reshape(a,b):转化为a*b形式
np.where(cond,x,y):if cond: re=x else re=y