62.4K subscribers
119 photos
1 video
1 link
Data science, Machine learning, and Artificial Intelligence. We post daily contents related to machine learning focusing on Numpy, Pandas, and ML effectively.
Download Telegram
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
πŸ‘4❀3
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
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
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
❀4πŸ‘1
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
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