0% found this document useful (0 votes)
8 views2 pages

Numpy Content

The document provides a comprehensive overview of NumPy, including its advantages over Python lists, installation, and basic array operations. It covers array creation, attributes, indexing, mathematical functions, linear algebra, and advanced concepts like structured and masked arrays. Additionally, it includes practical applications and exercises to reinforce learning.

Uploaded by

sidideapad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

Numpy Content

The document provides a comprehensive overview of NumPy, including its advantages over Python lists, installation, and basic array operations. It covers array creation, attributes, indexing, mathematical functions, linear algebra, and advanced concepts like structured and masked arrays. Additionally, it includes practical applications and exercises to reinforce learning.

Uploaded by

sidideapad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

NumPy

1. Introduction to NumPy

* What is NumPy?
* Advantages over Python lists
* Installing & importing ( import numpy as np )
* NumPy array ( ndarray ) basics

2. Array Creation

* Creating arrays:
array()
arange()
linspace()
logspace()
* Special arrays:
zeros()
ones()
empty()
full()
* Identity & diagonal:
eye()
diag()
* Random arrays:
[Link]()
[Link]()
[Link]()
[Link]()

3. Array Attributes

* Shape, size, dimensions: shape , ndim , size


* Data types & conversions: dtype , astype()
* Memory info: itemsize , nbytes

4. Indexing & Slicing

* 1D, 2D, 3D indexing


* Slicing arrays with steps, negative indices
* Fancy indexing (list/array-based selection)
* Boolean indexing & conditions

5. Array Operations

* Arithmetic operations: + , - , * , / , **
* Broadcasting rules & examples
* Universal functions ( [Link] , [Link] , [Link] , [Link] , …)
* Logical operations ( [Link] , [Link] , [Link] )

6. Mathematical & Statistical Functions

* Aggregates: sum , min , max , mean , median , std , var


* Axis-wise operations ( axis=0 , axis=1 )
* Cumulative: cumsum , cumprod
7. Array Manipulation

* Reshaping: reshape , ravel , flatten


* Transpose & axes: transpose , swapaxes , T
* Joining arrays: hstack , vstack , concatenate()
* Splitting arrays: hsplit , vsplit , split()

8. Linear Algebra

* Matrix multiplication: dot , matmul


* Determinant, inverse, rank ( [Link] , [Link] , linalg.matrix_rank )
* Eigenvalues & eigenvectors ( [Link] )
* Solving linear equations ( [Link] )

9. Random Number Generation

* Uniform distribution: [Link]()


* Normal distribution: [Link]()
* Seed & reproducibility: [Link]()
* Shuffling & permutations: [Link]() , [Link]()

10. Advanced Concepts

* Structured arrays (multiple dtypes in one array)


* Masked arrays (handling missing/invalid values)
* Broadcasting tricks & memory efficiency
* Vectorization vs loops (performance gains)

11. Capstone Practice

* Matrix operations (inverse, transpose, multiplication)


* Stock/Weather data statistics using NumPy
* Image filter (grayscale/blur) with NumPy arrays

You might also like