NumPy中ndarray类型属性、创建和变换

Recommend:

        First,I highly recommend 嵩天's classes which is pretty good for guys like us .

Yeah,I have learn a lot from that gentle and tender young man . So,come and learn

python with us .

 

https://www.icourse163.org/learn/BIT-1001870002?tid=1206192225#/learn/content?type=detail&id=1210784853&cid=1213173497&replay=true 

Click this you will enter into songtian's classes .

https://python123.io/index/open

A platform for practice .

 

Point:

 

ndarray的属性:
 .ndim
 .shape
 .size
 .dtype
 .itemsize

 

                        

                       

 

ndarray的创建:
    前提import numpy as np    
    np.array()
    np.arrange()
    np.ones(shape)
    np.zeros()
    np.full(shape,val)
    np.ones_like(a)
    np.zeros_like(a)
    np.full_like(a,val)

 

ndarray的变换:
    .reshape()
    .resize()
    .flatten()

    .astype()

See you next time , ciao !

 

 

 

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值