Welcome back to another NumPy lesson! π.Basketball players make a great excuse to learn about arg functions in NumPy π.argmax() returns the index of the element with the maximum value.argmin() returns the index of the element with the minimum value.argsort() returns the indices of the array in ascending order π.Basically what adding arg to the name of the function does is to make return the *index* of the element and not the element itself.This is handy for this example because we then use the index to retrieve the name of the player from the other array π€―π.
.
π¨βπ»#NumPy
.
π¨βπ»#NumPy
π£ Turn on post notifications to be always in the know
.
NumPy part 9: np.where()
.
np.where() returns the indices where the condition is met (not the elements themselves) π
.
.
.
π¨βπ»#NumPy
.
NumPy part 9: np.where()
.
np.where() returns the indices where the condition is met (not the elements themselves) π
.
.
.
π¨βπ»#NumPy
Part 10 π of Intro to NumPy, what a journey guys, thanks for sticking around for these posts!! On to part 100 shall we??
.
Follow u0040bigdataguru for tutorials and instructional posts on AI, machine learning and deep learning!
.
.
π¨βπ»#NumPy
.
Follow u0040bigdataguru for tutorials and instructional posts on AI, machine learning and deep learning!
.
.
π¨βπ»#NumPy
.
np.tile() is one of the most beautiful yet super useful functions there is in NumPy and Python! Happy weekend!! ππ
.
Typo alert: 4th slide should say np.array([[6], [7]]) for the picture to match!
.
π¨βπ»#NumPy
np.tile() is one of the most beautiful yet super useful functions there is in NumPy and Python! Happy weekend!! ππ
.
Typo alert: 4th slide should say np.array([[6], [7]]) for the picture to match!
.
π¨βπ»#NumPy
np.cumsum() is a useful function when it comes to doing big data cumulative sums. See it, learn it, and use it πͺ
.
.
.
π¨βπ»#NumPy
.
.
.
π¨βπ»#NumPy
This post is inspired by a great question on the last post! So keep asking great questions and motivate future posts πͺ
.
.
π¨βπ»#NumPy
.
.
π¨βπ»#NumPy
Hi Data Science enthusiasts π
.
Today, we are gonna talk about broadcasting in NumPy π’
.
Broadcasting is a powerful, useful yet tricky feature in NumPy. If you know it well and use it intentionally, you can simplify a lot of code π
.
However, if itβs used by mistake it can create bugs and a lot of headaches π€
.
Thatβs because in NumPy, you can easily do operations between matrices even if they donβt have the same shape π
.
NumPy βbroadcastsβ the smaller matrix (if valid for the operation) and repeats the operation per element, row, column, etc π€
.
In todayβs code snippet, a scalar broadcasts into the same size of a matrix to be subtracted. Similarly, a row and column vector broadcasts into the right shape before getting subtracted!
.
Wanna know how? Check out the post!
.π¨βπ»#NumPy
.
Today, we are gonna talk about broadcasting in NumPy π’
.
Broadcasting is a powerful, useful yet tricky feature in NumPy. If you know it well and use it intentionally, you can simplify a lot of code π
.
However, if itβs used by mistake it can create bugs and a lot of headaches π€
.
Thatβs because in NumPy, you can easily do operations between matrices even if they donβt have the same shape π
.
NumPy βbroadcastsβ the smaller matrix (if valid for the operation) and repeats the operation per element, row, column, etc π€
.
In todayβs code snippet, a scalar broadcasts into the same size of a matrix to be subtracted. Similarly, a row and column vector broadcasts into the right shape before getting subtracted!
.
Wanna know how? Check out the post!
.π¨βπ»#NumPy
Partitioning is an important technique when you have a large amount of data and like to partition it based on a pivot value. NumPy can do this very efficiently and it leads to some cool applications.
.
Wanna know more? Check out the slides!
.
.
π¨βπ»#NumPy
.
Wanna know more? Check out the slides!
.
.
π¨βπ»#NumPy
Being fluent in NumPy goes a long way in becoming a data scientist π Today we are taking an important step in that direction! π
.
Wanna know more? Check out the slides!
.
π¨βπ»#NumPy
.
Wanna know more? Check out the slides!
.
π¨βπ»#NumPy
Hi Data Science enthusiasts π
.
Today, we are gonna talk about broadcasting in NumPy π’
.
Broadcasting is a powerful, useful yet tricky feature in NumPy. If you know it well and use it intentionally, you can simplify a lot of code π
.
However, if itβs used by mistake it can create bugs and a lot of headaches π€
.
Thatβs because in NumPy, you can easily do operations between matrices even if they donβt have the same shape π
.
NumPy βbroadcastsβ the smaller matrix (if valid for the operation) and repeats the operation per element, row, column, etc π€
.
In todayβs code snippet, a scalar broadcasts into the same size of a matrix to be subtracted. Similarly, a row and column vector broadcasts into the right shape before getting subtracted!
.
Wanna know how? Check out the post!
.π¨βπ»#NumPy
.
Today, we are gonna talk about broadcasting in NumPy π’
.
Broadcasting is a powerful, useful yet tricky feature in NumPy. If you know it well and use it intentionally, you can simplify a lot of code π
.
However, if itβs used by mistake it can create bugs and a lot of headaches π€
.
Thatβs because in NumPy, you can easily do operations between matrices even if they donβt have the same shape π
.
NumPy βbroadcastsβ the smaller matrix (if valid for the operation) and repeats the operation per element, row, column, etc π€
.
In todayβs code snippet, a scalar broadcasts into the same size of a matrix to be subtracted. Similarly, a row and column vector broadcasts into the right shape before getting subtracted!
.
Wanna know how? Check out the post!
.π¨βπ»#NumPy