当前位置:网站首页>[data analysis and display]
[data analysis and display]
2022-06-30 08:30:00 【yyqx&xxxx】
conda
A tool , For package management and environment management
Package management and pip similar
Environmental management allows users to use different versions python, And can switch flexibly
The dimensions of data
The organization of a set of data
Lists and arrays
The ordered structure of a set of data
difference : list : Data types can be different
Array : Same data type
Two dimensional data : Multiple one bit data constitute , Is a combination of one bit of data
Multidimensional data : One dimensional and two-dimensional data are expanded in new dimensions to form 
High dimensional data : Use the most basic binary relationship to show the complex structure between data
numpy——scipy,pandas Data processing or science · Basis of calculation library
1, One Powerful N Dimensional array object ndarray
2, Broadcast function
3, Integrate c/c++ Code tools
4, linear algebra , The Fourier transform , Random number generation and other functions
introduce :
import numpy as np
ndarray:N Dimensional array object
The array object can remove the loop required by the operation between elements , Make a one-dimensional vector more like a single data
Set special array objects , optimized , It can improve the computing speed of this kind of application
General , The type of all data in a dimension is often the same . Array objects use the same data type , It helps to save computing and storage space
ndarray Two parts make up :
1, The actual data
2, Metadata that describes the data ( Data dimension , Data type, etc )
Axis : Save the dimension of the data , Rank : Number of shafts
ndarray attribute :.ndim Rank , Number of dimensions ·
.shape Object size
.size Element number
.dtype Element type
.itemsize Element size 
establish ndarray
(1)x = np.array(list/tuple)
When np.array() Don't specify dtype when ,numpy Will associate a based on the data dtype type
1, Create from list type
2, Create from tuple type
3, Create from list and tuple mixed types
(2) Function creation
arange,ones,zeros etc.
eg:np.arange(10)
np.ones((3,6))
(3) Other functions create
ndarray Array transformation
Dimensional transformation
.reshape(shape) Do not change array elements , Return to one shape Array of shapes the original array remains unchanged
.resize(shape) Modify the original array
.swapaxes(ax1,ax2) Will array n Two of the three dimensions are exchanged
.flatten() Dimension the array , The original array remains the same
ndarray Array type transformation
new_a = a.astype(new_type)
Index and slice of arrays
A one-dimensional : And python The list of is similar to 
Index of multidimensional array 
Slices of multidimensional arrays 
The operation between an array and a scalar
The operation between an array and a scalar acts on every element of the array
numpy One variable function 

numpy Dual function 
边栏推荐
- 牛客小白月賽52
- 【NVMe2.0b 14-5】Firmware Download/Commit command
- Implementation of remote monitoring by camera in Experiment 5
- Tidb v6.0.0 (DMR): initial test of cache table - tidb Book rush
- Niuke Xiaobai month race 52
- Applet uses QR code plug-in
- Redis design and Implementation (IV) | master-slave replication
- C # listbox how to get the selected content (search many invalid articles)
- Common tools installation, configuration, compilation, link, etc
- Using typera+picgo to realize automatic uploading of markdown document pictures
猜你喜欢

【NVMe2.0b 14-1】Abort、Asynchronous Event Request、Capacity Management command

Redis design and Implementation (VIII) | transaction
![[nvme2.0b 14-8] set features (Part 2)](/img/fe/67fd4f935237f9aa835e132e696b98.png)
[nvme2.0b 14-8] set features (Part 2)

What are the Amazon evaluation terms?

Wechat applet reports errors using vant web app

【NVMe2.0b 14-3】Doorbell Buffer Config command、Device Self-test command

【NVMe2.0b 14-8】Set Features(下篇)
![[flower carving experience] 12 build the Arduino development environment of esp32c3](/img/76/a66e6d5c62d25067841b47eb01b718.jpg)
[flower carving experience] 12 build the Arduino development environment of esp32c3

Enhance the add / delete operation of for loop & iterator delete collection elements

Interference source current spectrum test of current probe
随机推荐
我们如何拿到自己满意的薪资呢?这些套路还是需要掌握的
一次cpu 跌底排查
Does the oscilloscope probe affect the measurement of capacitive load?
Redis design and Implementation (VII) | publish & subscribe
[untitled]
Experiment 2 LED button PWM 2021/11/15
Qqquickpainteditem implements graffiti program drawing board
Experiment 3 remote control
Opencv video
Redis design and Implementation (I) | data structure & object
2021-04-29
Viteproject require Syntax Compatibility Problem Solving require is not defined
牛客小白月赛52
在浏览器输入url到页面展示出来
Redis设计与实现(八)| 事务
[flower carving experience] 12 build the Arduino development environment of esp32c3
C preliminary chapter learning route
Unit Test
Gilbert Strang's course notes on linear algebra - Lesson 4
Rendering engine development