Python pandas — Occupation Exercises

preview_player
Показать описание
Sometimes we learn best by doing. Unlike my other videos, I’ll be going through these exercises cold. Sometimes we’ll encounter ambiguous questions, and sometimes I'll be wrong. Learning from our mistakes can be a powerful teacher. So, it’s OK to be wrong now, because we’ll know how to avoid it next time when it counts.

My hope is that you will learn by doing. Why don’t you proceed through the linked exercises before we walk through them together?

This series can be viewed in tandem with my “An Opinionated Guide to pandas“ video series (links below), but it’s not required.

This series is beginner-friendly but aimed most directly at intermediate users.

This Learning by Doing is part of the Combining DataFrames segment from the Opinionated Guide to pandas Series. Here's a link to the GH repo:

Рекомендации по теме
Комментарии
Автор

temp = 'age_count', 'index': 'age_value'})
temp.loc[temp['age_count'] == temp['age_count'].min()]

for the last task will give ages with same min count

kos
Автор

Just wanted to let you know I found this super useful, as I'm currently learning Pandas! I suscribed.

pablodzch
Автор

Took 25 mins to get it all done!
Functions that were used
df.set_index('user_id', inplace=True)
df.info()
df.describe()
df['a'].value_counts()

arhataria
Автор

Great Work Nathaniel!! Thank you for sharing this content. It's help me a lot, because i'm a beginner and i'm struggle a lot to try and comprehend pandas and all the libraries and data science tools.

fabriciomattos
Автор

What is the age with least occurrence?

s = users['age'].value_counts()
s[s == s.iat[-1]]

This is a general solution to this problem since it will yield all the ages that occur least often.

jimmymesa
Автор

Surprisingly, works the same as pd.cut(users['age'], 10).value_counts().

jimmymesa
Автор

Where can I get these notebooks for practice !!

shahzan
Автор

It's good ... Also post videos regarding working with gui

sahil.jasrotia
Автор

2:11 how u get that extension for help shortcut?

manasmalik