Define Numpy
Numpy is the most important module in python programming language. It is the alternative for matlab. Its mainly used for the multi dimensional array { 1D,2D,3D array} and mathematical function.
Operation in Numpy
- Numpy array Attributes
- Array indexing Accessing single element
- Array Slicing
- Array Concatenation and splitting
1.Numpy Array Attributes
In bottom code they have create the 3 attribute to assign the 1D,2D,3D value in randomly with the help of numpy modules.
Example
2.Array Indexing Accessing Single Elements
Array indexing is used to accessing the elements in the array of an elements, variable with the square brackets then place the index value in the square bracket.
Example
3.Array Slicing
Slicing operation is used to splitted the element in the array with the help of [ ] square brackets with some semi colon [ start: stop : step]
Example
4.Array Concatenation and Splitting
All of the preceding routine work end on single arrays are possible to combine to the multi dimensional array. They have classified into the
- Concatenation of Array
- Splitting of Array
Concatenation of array
A array can be two are more array are combine into to the multi dimensional array with the help of concatenation of array .
Example
A array can be used to splitting of an multi dimensional array into the single array.
Post a Comment