Free · 44 Topics · No Signup
NumPy Notes
Python numerical computing — arrays, indexing, slicing, random and ufuncs — written by CodingNow 2.0's mentors. Free to read, structured to actually help you learn.
NumPy notes by CodingNow 2.0 cover 44 topics — from numpy home to ufunc set operations — each explained with short definitions, syntax and runnable code examples. They are 100% free, need no signup, and work as quick revision for college exams, NumPy interviews and CodingNow 2.0's mentor-led NumPy course in Pitampura, Delhi.
No notes found. Try a different search term, or browse all NumPy notes.
NumPy Tutorial
16 of 16 topics publishedNumPy HOME
We have created 43 tutorial pages for you to learn more about NumPy.
NumPy Intro
NumPy is a Python library used for working with arrays.
NumPy Getting Started
If you have Python and PIP already installed on a system, then installation of NumPy is very easy.
NumPy Creating Arrays
NumPy is used to work with arrays. The array object in NumPy is called ndarray .
NumPy Array Indexing
Array indexing is the same as accessing an array element.
NumPy Array Slicing
Slicing in python means taking elements from one given index to another given index.
NumPy Data Types
- strings - used to represent text data, the text is given under quote marks. e.g. "ABCD"
NumPy Copy vs View
The main difference between a copy and a view of an array is that the copy is a new array, and the view is just a view of the original array.
NumPy Array Shape
The shape of an array is the number of elements in each dimension.
NumPy Array Reshape
Reshaping means changing the shape of an array.
NumPy Array Iterating
Iterating means going through elements one by one.
NumPy Array Join
Joining means putting contents of two or more arrays in a single array.
NumPy Array Split
Splitting is reverse operation of Joining.
NumPy Array Search
You can search an array for a certain value, and return the indexes that get a match.
NumPy Array Sort
Sorting means putting elements in an ordered sequence.
NumPy Array Filter
Getting some elements out of an existing array and creating a new array out of them is called filtering.
NumPy Random
15 of 15 topics publishedRandom Intro
Random number does NOT mean a different number every time. Random means something that can not be predicted logically.
Data Distribution
Data Distribution is a list of all possible values, and how often each value occurs.
Random Permutation
A permutation refers to an arrangement of elements. e.g. 3, 2, 1 is a permutation of 1, 2, 3 and vice-versa.
Seaborn Module
Seaborn is a library that uses Matplotlib underneath to plot graphs. It will be used to visualize random distributions.
Normal Distribution
The Normal Distribution is one of the most important distributions.
Binomial Distribution
Binomial Distribution is a Discrete Distribution.
Poisson Distribution
Poisson Distribution is a Discrete Distribution.
Uniform Distribution
Used to describe probability where every event has equal chances of occuring.
Logistic Distribution
Logistic Distribution is used to describe growth.
Multinomial Distribution
Multinomial distribution is a generalization of binomial distribution.
Exponential Distribution
Exponential distribution is used for describing time till next event e.g. failure/success etc.
Chi Square Distribution
Chi Square distribution is used as a basis to verify the hypothesis.
Rayleigh Distribution
Rayleigh distribution is used in signal processing.
Pareto Distribution
A distribution following Pareto's law i.e. 80-20 distribution (20% factors cause 80% outcome).
Zipf Distribution
Zipf distributions are used to sample data based on zipf's law.
NumPy ufunc
13 of 13 topics publishedufunc Intro
ufuncs stands for "Universal Functions" and they are NumPy functions that operate on the ndarray object.
ufunc Create Function
To create your own ufunc, you have to define a function, like you do with normal functions in Python, then you add it to your NumPy ufunc library with the from
ufunc Simple Arithmetic
You could use arithmetic operators + - / directly between NumPy arrays, but this section discusses an extension of the same where we have functions th
ufunc Rounding Decimals
There are primarily five ways of rounding off decimals in NumPy:
ufunc Logs
NumPy provides functions to perform log at the base 2, e and 10.
ufunc Summations
What is the difference between summation and addition?
ufunc Products
To find the product of the elements in an array, use the prod() function.
ufunc Differences
A discrete difference means subtracting two successive elements.
ufunc Finding LCM
The Lowest Common Multiple is the smallest number that is a common multiple of two numbers.
ufunc Finding GCD
The GCD (Greatest Common Divisor), also known as HCF (Highest Common Factor) is the biggest number that is a common factor of both of the numbers.
ufunc Trigonometric
NumPy provides the ufuncs sin() , cos() and tan() that take values in radians and produce the corresponding sin, cos and tan values.
ufunc Hyperbolic
NumPy provides the ufuncs sinh() , cosh() and tanh() that take values in radians and produce the corresponding sinh, cosh and tanh values..
ufunc Set Operations
A set in mathematics is a collection of unique elements.
Ready to go from notes to a real career?
Join CodingNow 2.0's NumPy course — live mentorship, hands-on projects, and 100% placement support in Delhi NCR.
Enroll Now — Free Demo AvailableNumPy Notes – FAQs
What students search before reading NumPy notes.