- NumPy - I/O with NumPy
- NumPy - Histogram Using Matplotlib
- NumPy - Matplotlib
- NumPy - Linear Algebra
- NumPy - Matrix Library
- NumPy - Copies & Views
- NumPy - Byte Swapping
- Sort, Search & Counting Functions
- NumPy - Statistical Functions
- NumPy - Arithmetic Operations
- NumPy - Mathematical Functions
- NumPy - String Functions
- NumPy - Binary Operators
- NumPy - Array Manipulation
- NumPy - Iterating Over Array
- NumPy - Broadcasting
- NumPy - Advanced Indexing
- NumPy - Indexing & Slicing
- Array From Numerical Ranges
- NumPy - Array from Existing Data
- NumPy - Array Creation Routines
- NumPy - Array Attributes
- NumPy - Data Types
- NumPy - Ndarray Object
- NumPy - Environment
- NumPy - Introduction
- NumPy - Home
NumPy Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
NumPy - Array Manipulation
Several routines are available in NumPy package for manipulation of elements in ndarray object. They can be classified into the following types −
Changing Shape
Sr.No. | Shape & Description |
---|---|
1 | Gives a new shape to an array without changing its data |
2 | A 1-D iterator over the array |
3 | Returns a copy of the array collapsed into one dimension |
4 | Returns a contiguous flattened array |
Transpose Operations
Sr.No. | Operation & Description |
---|---|
1 | Permutes the dimensions of an array |
2 | Same as self.transpose() |
3 | Rolls the specified axis backwards |
4 | Interchanges the two axes of an array |
Changing Dimensions
Sr.No. | Dimension & Description |
---|---|
1 | Produces an object that mimics broadcasting |
2 | Broadcasts an array to a new shape |
3 | Expands the shape of an array |
4 | Removes single-dimensional entries from the shape of an array |
Joining Arrays
Sr.No. | Array & Description |
---|---|
1 | Joins a sequence of arrays along an existing axis |
2 | Joins a sequence of arrays along a new axis |
3 | Stacks arrays in sequence horizontally (column wise) |
4 | Stacks arrays in sequence vertically (row wise) |
Spptting Arrays
Sr.No. | Array & Description |
---|---|
1 | Sppts an array into multiple sub-arrays |
2 | Sppts an array into multiple sub-arrays horizontally (column-wise) |
3 | Sppts an array into multiple sub-arrays vertically (row-wise) |
Adding / Removing Elements
Sr.No. | Element & Description |
---|---|
1 | Returns a new array with the specified shape |
2 | Appends the values to the end of an array |
3 | Inserts the values along the given axis before the given indices |
4 | Returns a new array with sub-arrays along an axis deleted |
5 | Finds the unique elements of an array |