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
Level up your Python skills with our Telegram channel! ππ₯
Join now for valuable Python insights, tutorials, and community discussions. Let's learn and code together! π»π
https://t.me/+gumUMX-TjOdiOGY0
Join now for valuable Python insights, tutorials, and community discussions. Let's learn and code together! π»π
https://t.me/+gumUMX-TjOdiOGY0
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 everyone ππ.I wanted to introduce Pandas to you in case itβs new to you. We will be working a lot with it in the future so a nice introduction will go a long way π.I have asked a few of my friends βΌοΈ to help me introduce Pandas to you by showing up on the post ππ.Jokes aside, Pandas is a really powerful data analytics library in Python that I use almost everyday. Itβs robust, fast, and great for prototyping data science problems π§ ..It quickly feels like youβre working with a database, so if you know SQL this wonβt feel too different..Let me know who your favorite founder is from the 4 on the picture. Iβll keep mine a secret for now. π
.
π¨βπ»#Pandas
.
π¨βπ»#Pandas
Hi everyone ππ.My friends are here again for part 2 of our intro to Pandasπππ.In Pandas, you can easily extract more useful data points from existing data in the table, and because Pandas has been optimized to work on large amounts of data, column operations are super fast π¨..Here I divide the foundersβ net worth by their age, to get a sense of their average wealth accumulation rate.Then I am interested to see whoβs accumulated wealth the fastest, so I sort the column in the descending order ππ».Super fast, in a few lines, I have answered a couple of my questions about my favorite founders π.
.
π¨βπ»#Pandas
.
π¨βπ»#Pandas
Hello all and welcome to the 3rd episode of our Intro to Pandas series @bigdataguru ππ.Our friends, the 4 founders, have been kind enough to show up once again to help us understand two important functions on Pandas π.groupby()mean().Groupby() as the name suggests groups the rows of data frame based on the values of a column of columns..The result of the groupby is usually used for aggregation of data, in the case finding the mean number of employees employed in given states by these 4 companies.With those in our toolset, we can now do incredible things with data ππ»ππ».
.
π¨βπ»#Pandas
.
π¨βπ»#Pandas
Hi data scientists πππ.A coincidence that the day we just finished was Valentineβs Day but I have been receiving a lot of love π from you guys lately! Many of you have reached out and supported the content, just know that itβs appreciated and it will make this page better! π.With that, letβs get to todayβs post, shall we?? .Of course when we are talking about Pandas, our good friends the founders are back to help us! π.However our founders have been having a little argument lately. Even one was allegedly heard calling another one βhey boomerβ βΌοΈ and the other responded back with βyou millennialβ π€¦π»ββοΈ Even though arguments are not nice, this gives us the chance to use Pandas to settle who is in what generation!.pd.cut allows us to categorize a continuous spectrum into bins π here our bins are the generations and the continuous spectrum is the year number π.After seeing exactly whoβs in what generation, our founders realize that they should apologize to each other. They have promised to treat each other better in the next post so stay tuned π£.Correction: founders_df[βBirthβ] should be founders_df[βBirthYearβ] βΌοΈβΌοΈ
.
π¨βπ»#Pandas
.
π¨βπ»#Pandas
Hello all and welcome to the post of the day π .Today, we are going to introduce Machine Learning and Deep Learning and talk about what makes them different π€ .In traditional machine learning, scientists had to define concrete and well defined features for the inputs, those features would then get fed into a neural network that would produce a prediction π.In deep learning however, we are leaving it to the network to learn and ultimately decide which features it seems relevant to the learning problem π‘ .This is precisely why deep learning is so powerful, everything end to end is learned by the network. The hard part then becomes designing the perfect network for a given problem π§ .Super excited to be going through this journey through AI with you guys. Stay tuned for more machine learning posts this coming week π
____
π¨βπ» #Machine_Learning
____
π¨βπ» #Machine_Learning