Python pandas — Occupation Exercises




[ad_1]

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:
https://github.com/knathanieltucker/pandas-tutorial/blob/master/notebooks/Combining%20DataFrames.ipynb

Here’s a link to the Getting and Knowing – Auto_MPG exercise: https://github.com/guipsamora/pandas_exercises/tree/master/01_Getting_%26_Knowing_Your_Data/Occupation

Source


[ad_2]

Comment List

  • Data Talks
    December 15, 2020

    Love you!

  • Data Talks
    December 15, 2020

    really useful – thanks! 🙂

  • Data Talks
    December 15, 2020

    Where can I get these notebooks for practice !!

  • Data Talks
    December 15, 2020

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

  • Data Talks
    December 15, 2020

    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()

  • Data Talks
    December 15, 2020

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

  • Data Talks
    December 15, 2020

    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.

  • Data Talks
    December 15, 2020

    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.

  • Data Talks
    December 15, 2020

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

  • Data Talks
    December 15, 2020

    Keep up the good work, bro! Thanks 🖒

Write a comment