63.1K 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 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
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
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
Welcome to part 5 of Fun with Pandas featuring our founders ๐Ÿ‘Œ
.
Fast and robust string operations are crucial to a large data framework. As shown, one can split columns based on unique patterns of their values .
Here, the separation of city from state/province and country is possible through finding the common pattern of โ€œ, โ€œ between city and state and between state and country
.
At the end, we are curious to know more about our South African born founder so we filter on South Africa ๐Ÿ‡ฟ๐Ÿ‡ฆ .
No hard feelings Bill, Mark, and Jeff. We are curious about you too ๐Ÿ˜

.

๐Ÿ‘จโ€๐Ÿ’ป#Pandas
Today, we are gonna talk about:
.
assign()
.
assign() lets do create a new column from a different column with some modification ๐Ÿ’ช
.
Here we are subtracting our foundersโ€™ birth year from the current year to find their ages +/- 1 year ๐Ÿ‘
.
Later, we use the mean() function we covered in Part 3 of these series to find that together our favorite founders are 51.5 years young โ€ผ๏ธ


.

๐Ÿ‘จโ€๐Ÿ’ป#Pandas
Lesson of the day: apply() in Pandas ๐Ÿ’ช๐ŸŽ‰ with the help of our favorite founders who are back yet again!!
.
apply() allows you to โ€œapplyโ€ ๐Ÿ˜ฎ any user defined function to column(s) of data ๐Ÿ‘Œ
.
Swipe to see what we were curious to find out about our founders using apply() ๐Ÿ” .

.

๐Ÿ‘จโ€๐Ÿ’ป#Pandas
Hey everyone ๐Ÿ‘‹
.
As data scientists, we are data hungry!! Good news is data is available everywhere on the internet, and Pandas has the feature to import all of that goodness easily into a DataFrame ๐Ÿ‘Œ
.
How? Check out the slides!!

.

๐Ÿ‘จโ€๐Ÿ’ป#Pandas
Howdy everyone ๐Ÿ‘‹๐Ÿ‘‹
.
How about continuing our discussion on how to use Pandas to get valuable insights from our data? Shall we? ๐Ÿ‘Œ

.

๐Ÿ‘จโ€๐Ÿ’ป#Pandas