0% found this document useful (0 votes)
2 views4 pages

NumPy Book

The document provides comprehensive notes on NumPy, a Python library for numerical computing and array operations. It covers topics such as creating arrays, performing array operations, reshaping and flattening arrays, using statistical functions, generating random numbers, and real-life applications in fields like Data Science and Machine Learning. Each chapter includes examples demonstrating the use of NumPy functions.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views4 pages

NumPy Book

The document provides comprehensive notes on NumPy, a Python library for numerical computing and array operations. It covers topics such as creating arrays, performing array operations, reshaping and flattening arrays, using statistical functions, generating random numbers, and real-life applications in fields like Data Science and Machine Learning. Each chapter includes examples demonstrating the use of NumPy functions.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Complete NumPy Notes

Prepared for Maruf


Table of Contents
Chapter Topic

1 What is NumPy?
2 Creating Arrays
3 Array Operations
4 Reshape & Flatten
5 Statistics Functions
6 Random Module
7 Real Life Usage
Chapter 1: What is NumPy?

NumPy is a Python library used for numerical computing and array operations.

Example:
import numpy as np
arr = [Link]([1,2,3])
print(arr)

Chapter 2: Creating Arrays

You can create arrays using array(), zeros(), ones(), arange(), linspace().

Example:
import numpy as np
arr = [Link]([1,2,3])
print(arr)

Chapter 3: Array Operations

Addition, subtraction, multiplication, division and broadcasting are supported.

Example:
import numpy as np
arr = [Link]([1,2,3])
print(arr)

Chapter 4: Reshape & Flatten

reshape() changes dimensions and flatten() converts to 1D.

Example:
import numpy as np
arr = [Link]([1,2,3])
print(arr)

Chapter 5: Statistics Functions

mean(), median(), std(), var(), sum(), min(), max()


Example:
import numpy as np
arr = [Link]([1,2,3])
print(arr)

Chapter 6: Random Module

[Link](), randint(), seed() help generate random numbers.

Example:
import numpy as np
arr = [Link]([1,2,3])
print(arr)

Chapter 7: Real Life Usage

Used in Data Science, AI, Machine Learning, and image processing.

Example:
import numpy as np
arr = [Link]([1,2,3])
print(arr)

You might also like