NumPy

NumPy is a powerful open-source library for Python that provides support for large, multi-dimensional arrays and matrices, along with a collection of mathematical functions to operate on these arrays. It is widely used in scientific computing, data analysis, and machine learning due to its performance and ease of use.

NumPy Tutorial

1
NumPy Introduction
10 minutes

NumPy is a powerful Python library for numerical computing that provides support for large, multi-dimensional arrays, along with a vast collection of mathematical functions to operate on these arrays efficiently.

2
NumPy Getting Started
10 minutes

NumPy Getting Started is an introductory guide to using NumPy, a powerful library in Python for numerical computing, providing support for arrays, matrices, and a variety of mathematical functions.

3
NumPy Creating Arrays
10 minutes

NumPy Creating Arrays refers to the process of generating arrays using various methods like array(), zeros(), ones(), and other functions to initialize and manipulate data in array form.

4
Dimensions in Arrays
10 minutes

Dimensions in arrays refer to the number of axes or coordinates needed to specify an element within the array, indicating its shape and structure, such as one-dimensional (1D), two-dimensional (2D), or multi-dimensional arrays.

5
Check Number of Dimensions?
5 minutes

Check Number of Dimensions refers to the process of determining the total count of dimensions in a given array or data structure.

6
NumPy Array Indexing
10 minutes

NumPy array indexing is the method of accessing and modifying elements or subsets of elements within a NumPy array using integer indices or slices.

7
Access 2-D Arrays
10 minutes

Accessing 2-D arrays involves using row and column indices to retrieve or modify specific elements within the array's grid-like structure.

8
Access 3-D Arrays
10 minutes

Accessing 3-D arrays involves using three indices to specify the depth, row, and column of the desired element within the array's multi-dimensional structure.

9
NumPy Array Slicing
10 minutes

NumPy array slicing is the technique of extracting a subset of elements from an array by specifying a range of indices.

10
Negative Slicing
10 minutes

Negative slicing is a technique that allows accessing elements of an array using negative indices, which count from the end of the array rather than the beginning.

11
Slicing 2-D Arrays
10 minutes

Slicing 2-D arrays involves selecting a subset of rows and columns to create a new array, allowing for the extraction of specific sections from the original array.

12
NumPy Data Types
10 minutes

NumPy data types are the various formats that define the type of data stored in a NumPy array, such as integers, floats, booleans, and strings, each with specific memory requirements.

13
Creating Arrays With a Defined Data Type
10 minutes

Creating arrays with a defined data type involves explicitly specifying the desired data type when initializing a NumPy array, ensuring that all elements conform to that type.

14
Converting Data Type on Existing Arrays
10 minutes

Converting the data type on existing arrays involves using NumPy's astype() method to change the data type of the elements in an array without creating a new array.

15
NumPy Array Copy vs View
10 minutes

NumPy array copy creates a new array with its own data, while a view provides a reference to the original array's data, meaning changes to the view will affect the original array.

16
VIEW
10 minutes

A view is a way to access or modify the data of an array without creating a copy, allowing for more memory-efficient operations while maintaining a reference to the original data.

17
Check if Array Owns its Data
10 minutes

Checking if an array owns its data involves verifying whether the array is a copy with its own data or a view that references the original data.

18
NumPy Array Shape
10 minutes

NumPy array shape refers to a tuple that specifies the dimensions of the array, indicating the size along each axis.

19
NumPy Array Reshaping
10 minutes

NumPy array reshaping is the process of changing the shape or dimensions of an existing array without altering its data.

20
Returns Copy or View?
10 minutes

The Returns Copy or View? function checks whether a NumPy array operation results in a copy of the original data or a view referencing the same data.

21
Flattening the arrays
10 minutes

Flattening an array involves converting a multidimensional array into a one-dimensional array.

22
NumPy Array Iterating
10 minutes

NumPy array iterating refers to the process of looping through the elements of an array, allowing access to each element for operations or computations.

23
Iterating 2-D Arrays
10 minutes

Iterating 2-D arrays involves accessing each element row by row or column by column using loops or other iteration techniques.

24
Iterating 3-D Arrays
10 minutes

Iterating 3-D arrays involves looping through each element across all three dimensions, allowing access to individual scalars or sub-arrays.

25
Iterating With Different Step Size
10 minutes

Iterating with different step size involves traversing an array's elements at specified intervals rather than sequentially, allowing for flexible access to elements.

26
NumPy Array Join
10 minutes

Joining NumPy arrays involves concatenating two or more arrays along a specified axis to create a unified array.

27
Joining Arrays Using Stack Functions
10 minutes

Joining arrays using stack functions involves combining multiple arrays along a specified axis, such as stacking them vertically or horizontally, to create a new array.

28
Stacking Along Rows
10 minutes

Stacking along rows refers to the process of combining multiple arrays vertically, creating a new array where the original arrays are placed one on top of the other along a new axis.

29
Splitting 2-D Arrays
10 minutes

Splitting 2-D arrays involves dividing a two-dimensional array into multiple sub-arrays along either the horizontal or vertical axis using functions like np.hsplit() (horizontal split) and np.vsplit() (vertical split).

30
NumPy Array Split
10 minutes

NumPy array splitting is the process of dividing an array into multiple sub-arrays using functions like np.split(), np.hsplit(), np.vsplit(), or np.array_split() based on specified indices or sections.

31
Split Into Arrays
10 minutes

Splitting into arrays refers to the process of dividing a single array into multiple smaller arrays based on specified indices or conditions.

32
NumPy Arrays Search
10 minutes

Searching arrays in NumPy involves using functions like np.where(), np.searchsorted(), or boolean indexing to locate specific elements or conditions within an array.

33
Search Sorted
10 minutes

Search sorted in NumPy refers to using the np.searchsorted() function to identify the indices at which specified values can be inserted into a sorted array while preserving its order.

34
Search From the Right Side
10 minutes

Searching from the right side involves locating elements in an array starting from the last element and moving toward the first, often using functions that specify search direction.

35
NumPy Array Sort
10 minutes

NumPy sorting arrays involves using functions like np.sort() and np.argsort() to arrange the elements of an array in a specified order (ascending or descending).

36
NumPy Array Filter
10 minutes

NumPy filtering arrays involves using boolean indexing or the np.where() function to create a new array that contains only the elements that meet specified conditions.

37
Creating Filter Directly From Array
10 minutes

Creating a filter directly from an array involves applying a condition to the array to generate a boolean index list that selects elements meeting that condition.

NumPy Random

1
Random Intro
10 minutes

Random refers to the generation of values or selections in a way that is unpredictable and lacks a discernible pattern, often using algorithms or processes that mimic randomness.

2
Generate Random Array
10 minutes

Generating a random array involves creating an array filled with random values using functions from libraries like NumPy, such as np.random.rand() or np.random.randint().

3
Generate Random Number From Array
10 minutes

Generating a random number from an array involves selecting a random element from an existing array using functions like np.random.choice().

4
Data Distribution
10 minutes

Data distribution refers to the way in which values are spread or arranged within a dataset, often described using statistical measures such as mean, median, variance, and visualized through graphs like histograms or box plots.

5
Random Distribution
10 minutes

Random distribution refers to the way in which random values are spread or allocated over a range, characterized by their occurrence frequencies and probabilities.

6
Random Permutations
10 minutes

Random permutations refer to the rearrangement of the elements in an array into a random order, typically achieved using functions like np.random.permutation() in NumPy.

7
Seaborn Module
10 minutes

Seaborn is a Python data visualization library based on Matplotlib that provides a high-level interface for drawing attractive statistical graphics and visualizing complex datasets.

8
Import Seaborn
10 minutes

Importing Seaborn involves including the library in your Python script or notebook using the statement import seaborn as sns.

9
Normal Distribution
10 minutes

Normal distribution is a continuous probability distribution represented by a symmetrical bell-shaped curve, where observations cluster around the mean and probabilities decline symmetrically as values diverge from the mean.

10
Binomial Distribution
10 minutes

Binomial distribution is a discrete probability distribution that models the number of successes in a fixed number of independent Bernoulli trials, each with the same probability of success.

11
Poisson Distribution
10 minutes

Poisson distribution is a discrete probability distribution that models the number of events occurring within a fixed interval of time or space, given a constant mean rate and independence of events.

12
Difference Between Normal and Poisson Distribution
10 minutes

The main difference between Normal and Poisson distributions is that Normal is continuous, modeling data around a mean, while Poisson is discrete, modeling the frequency of events in a fixed interval.

13
Uniform Distribution
10 minutes

Uniform distribution is a probability distribution where all outcomes are equally likely within a given range.

14
Logistic Distribution
10 minutes

Logistic distribution is a continuous probability distribution characterized by a symmetrical S-shaped curve, commonly used to model growth and logistic regression.

15
Multinomial Distribution
10 minutes

Multinomial Distribution is a generalization of the binomial distribution that models the outcomes of experiments where each trial results in one of multiple possible categories, defined by the number of trials and the probabilities of each category.

16
Exponential Distribution
10 minutes

Exponential distribution is a continuous probability distribution that models the time between events in a Poisson process, characterized by a constant average rate of occurrence.

17
Chi Square Distribution
10 minutes

The Chi-Square distribution is a probability distribution that represents the distribution of the sum of squared standard normal variables, commonly used in hypothesis testing and goodness-of-fit tests.

18
Rayleigh Distribution
10 minutes

The Rayleigh distribution is a probability distribution used to model the magnitude of a vector that has orthogonal components following independent and identical normal distributions.

19
Pareto Distribution
10 minutes

The Pareto distribution is a probability distribution that models the distribution of wealth or other quantities, characterized by the principle that a small percentage of the population controls a large portion of the total.

20
Zipf Distribution
10 minutes

The Zipf distribution is a probability distribution that models the frequency of events, where the rank of an event is inversely proportional to its frequency, often used to describe word frequencies in natural language.

NumPy ufunc

1
ufuncs Intro
10 minutes

Ufuncs (universal functions) are functions in NumPy that operate element-wise on arrays, enabling fast and efficient computations across entire datasets without the need for explicit loops.

2
Vectorization
10 minutes

Vectorization in computing refers to the process of applying an operation to an entire set of data (such as an array or vector) in a single step, rather than using loops to apply the operation element by element.

3
ufunc Create Function
10 minutes

A ufunc create function allows users to define their own universal functions in NumPy, enabling custom element-wise operations on arrays.

4
ufunc Simple Arithmetic
10 minutes

Ufunc Simple Arithmetic refers to universal functions in NumPy that perform basic arithmetic operations—such as addition, subtraction, multiplication, and division—element-wise on arrays.

5
Subtraction
10 minutes

Subtraction is a basic arithmetic operation that calculates the difference between two numbers or quantities.

6
Multiplication
10 minutes

Multiplication is an arithmetic operation that combines two numbers to produce a product, representing repeated addition of one number by the other.

7
Power
10 minutes

Power is the ability or capacity to influence, control, or direct people, events, or resources.

8
Quotient and Mod
10 minutes

Quotient is the result of dividing one number by another, while Mod (modulus) is the remainder left after division.

9
ufunc Rounding Decimals
10 minutes

Ufunc Rounding Decimals refers to NumPy universal functions that round numerical values to a specified number of decimal places, such as round(), floor(), ceil(), and trunc().

10
Floor
10 minutes

Floor is an operation that rounds a number down to the nearest integer, returning the largest integer less than or equal to the given value.

11
ufunc Logs
10 minutes

NumPy logs are functions that compute logarithms of elements in arrays, supporting various bases like natural log (log), base 2 (log2), and base 10 (log10).

12
Log at Base 10
10 minutes

Log at Base 10 (log₁₀) is the power to which 10 must be raised to equal a given number.

13
ufunc Summations
10 minutes

Summations refer to the process of adding a sequence of numbers or values to obtain their total.

14
Summation Over an Axis
10 minutes

Summation over an axis refers to adding elements along a specified axis or dimension in a multi-dimensional array, collapsing that axis into a single value.

15
ufunc Products
10 minutes

Products refer to the result of multiplying a sequence of numbers or values together.

16
Product Over an Axis
10 minutes

Product over an axis refers to the process of multiplying elements along a specified axis in a multi-dimensional array to obtain a cumulative product.

17
Cummulative
10 minutes

Cumulative refers to the total amount resulting from the gradual addition of parts or elements over time.

18
ufunc Differences
10 minutes

Differences refer to the result of subtracting one number or value from another.

19
ufunc Finding LCM
10 minutes

The least common multiple (LCM) is the smallest positive integer that is a multiple of two or more numbers.

20
Finding LCM in Arrays
10 minutes

Finding the LCM (Least Common Multiple) in arrays involves determining the smallest multiple that is evenly divisible by all elements in the array.

21
ufunc Finding GCD
10 minutes

A ufunc for finding the greatest common divisor (GCD) is a universal function in NumPy that computes the largest positive integer that divides two or more numbers without leaving a remainder.

22
ufunc Trigonometric
10 minutes

Trigonometry is the branch of mathematics that studies the relationships between the angles and sides of triangles.

23
Finding Angles
10 minutes

Finding angles involves determining the measure of an angle in a triangle or geometric figure, often using trigonometric functions like sine, cosine, or tangent.

24
ufunc Hyperbolic
10 minutes

Hyperbolic refers to the mathematical functions and identities related to hyperbolas, similar to trigonometric functions but based on the geometry of hyperbolas, such as sinh, cosh, and tanh.

25
ufunc Set Operations
10 minutes

Set operations are mathematical operations that manipulate sets, including union, intersection, difference, and symmetric difference, to combine or compare the elements of two or more sets.

26
Finding Union
10 minutes

Finding the union of sets involves combining all unique elements from multiple sets into a single set, excluding duplicates.

27
Finding Intersection
10 minutes

Finding the intersection of sets involves identifying the common elements shared by multiple sets.

28
Finding Difference
10 minutes

Finding the difference between sets involves determining the elements that are present in one set but not in another.

Be the first to add a review.

Please, login to leave a review
Start course
Enrolled: 570 students
Lectures: 85
Level: Beginner

Archive

Working hours

Monday 9:30 am - 6.00 pm
Tuesday 9:30 am - 6.00 pm
Wednesday 9:30 am - 6.00 pm
Thursday 9:30 am - 6.00 pm
Friday 9:30 am - 5.00 pm
Saturday Closed
Sunday Closed
NumPy
Category: