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
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
.
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
.
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
.
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
.
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
.
How about continuing our discussion on how to use Pandas to get valuable insights from our data? Shall we? ๐
.
๐จโ๐ป#Pandas