当前位置:网站首页>Numpy——1. Creation of array
Numpy——1. Creation of array
2022-07-05 07:35:00 【Hair will grow again without it】
Create array
np.array(object, dtype)
or np.arange(start, stop, step, dtype)
object: The object of the created array , Can be a single value , list , Cell, etc .
example:
dtype: data type
- Specify the data type
example:2. Adjust the data type
a.astype("i1")
3. Modify the number of floating-point numbers
np.round(array, d)
边栏推荐
猜你喜欢
Jenkins reported an error. Illegal character: '\ufeff'. Class, interface or enum are required
II Simple NSIS installation package
Pagoda create multiple sites with one server
Word import literature -mendeley
Play with grpc - go deep into concepts and principles
Pytorch has been installed in anaconda, and pycharm normally runs code, but vs code displays no module named 'torch‘
Line test -- data analysis -- FB -- teacher Gao Zhao
Basic series of SHEL script (III) for while loop
Rough notes of C language (2) -- constants
What is Bezier curve? How to draw third-order Bezier curve with canvas?
随机推荐
Idea to view the source code of jar package and some shortcut keys (necessary for reading the source code)
Import CV2 prompt importerror: libgl so. 1: Cannot open shared object file: no such file or directory
Rough notes of C language (1)
arcgis_ spatialjoin
And let's play dynamic proxy (extreme depth version)
氢氧化钠是什么?
Basic operation of external interrupt (keil5)
Microservice registry Nacos introduction
Oracle-触发器和程序包
Set theory of Discrete Mathematics (I)
Web page Chinese display (print, etc.) GBK error, solution, software
Thunderbird tutorial \ easy to use mail client
Process (P) runs, and idle is different from pycharm
UE5热更新-远端服务器自动下载和版本检测(SimpleHotUpdate)
SQL JOINS
The problem of configuring opencv in qt5.13.2 is solved in detail
Ue5 hot update - remote server automatic download and version detection (simplehotupdate)
Today, share the wonderful and beautiful theme of idea + website address
arcpy. SpatialJoin_ Analysis spatial connection analysis
Pit record of Chmod 2 options in deepin