当前位置:网站首页>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 typea.astype("i1")
3. Modify the number of floating-point numbersnp.round(array, d)
边栏推荐
- Ggplot2 drawing learning notes in R
- Machine learning Seaborn visualization
- Detailed explanation of miracast Technology (I): Wi Fi display
- Jenkins reported an error. Illegal character: '\ufeff'. Class, interface or enum are required
- CADD课程学习(6)-- 获得已有的虚拟化合物库(Drugbank、ZINC)
- Opendrive record
- What if the DataGrid cannot see the table after connecting to the database
- Today, share the wonderful and beautiful theme of idea + website address
- Idea to view the source code of jar package and some shortcut keys (necessary for reading the source code)
- Basic series of SHEL script (II) syntax + operation + judgment
猜你喜欢
Graduation thesis project local deployment practice
I 用c I 实现队列
DelayQueue延迟队列的使用和场景
The number of occurrences of numbers in the offer 56 array (XOR)
行测--资料分析--fb--高照老师
Microservice registry Nacos introduction
Pagoda create multiple sites with one server
Ugnx12.0 initialization crash, initialization error (-15)
Matrix and TMB package version issues in R
Oracle-触发器和程序包
随机推荐
Cookie operation
玩转gRPC—深入概念与原理
What is Bezier curve? How to draw third-order Bezier curve with canvas?
And let's play dynamic proxy (extreme depth version)
Pytorch has been installed in anaconda, and pycharm normally runs code, but vs code displays no module named 'torch‘
行测--资料分析--fb--高照老师
Idea common settings
R language learning notes 1
Import CV2, prompt importerror: libcblas so. 3: cannot open shared object file: No such file or directory
Apple animation optimization
"Source code interpretation" famous programmer TJ's only library
list. files: List the Files in a Directory/Folder
Database SQL practice 4. Find the last of employees in all assigned departments_ Name and first_ name
Detour of Tkinter picture scaling
The folder directly enters CMD mode, with the same folder location
DataGrid offline installation of database driver
Basic series of SHEL script (II) syntax + operation + judgment
Oracle code use
Apple system shortcut key usage
Delayqueue usage and scenarios of delay queue