Python Pandas Tutorial (Part 2): DataFrame and Series Basics – Selecting Rows and Columns




[ad_1]

In this video, we will be learning about the Pandas DataFrame and Series objects.

This video is sponsored by Brilliant. Go to https://brilliant.org/cms to sign up for free. Be one of the first 200 people to sign up with this link and get 20% off your premium subscription.

In this Python Programming video, we will be learning about the DataFrame and Series objects. These are the backbone of Pandas and are fundamental to the library. DataFrames can be thought of as rows and columns, while a Series can be thought of as just a single column of rows. We’ll also learn the basic navigation of these datatypes by learning how to select specific rows and columns. Let’s get started…

The code for this video can be found at:
http://bit.ly/Pandas-02

StackOverflow Survey Download Page – http://bit.ly/SO-Survey-Download

✅ Support My Channel Through Patreon:
https://www.patreon.com/coreyms

✅ Become a Channel Member:
https://www.youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g/join

✅ One-Time Contribution Through PayPal:
https://goo.gl/649HFY

✅ Cryptocurrency Donations:
Bitcoin Wallet – 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet – 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet – MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey’s Public Amazon Wishlist
http://a.co/inIyro1

✅ Equipment I Use and Books I Recommend:
https://www.amazon.com/shop/coreyschafer

▶️ You Can Find Me On:
My Website – http://coreyms.com/
My Second Channel – https://www.youtube.com/c/coreymschafer
Facebook – https://www.facebook.com/CoreyMSchafer
Twitter – https://twitter.com/CoreyMSchafer
Instagram – https://www.instagram.com/coreymschafer/

#Python #Pandas

Source


[ad_2]

Comment List

  • Corey Schafer
    November 14, 2020

    I hope everyone finds this helpful! I will be releasing the 3rd video of the series on Monday. The next video will be on indexes. Indexes are very useful once we get the hang of them, so be sure to check that out. I hope everyone has a great weekend!

    I'd like to thank Brilliant for sponsoring this series. If you'd like to check them out then you can sign up with this link and get 20% off your premium subscription:
    https://brilliant.org/cms

  • Corey Schafer
    November 14, 2020

    Really great tutorial Corey. I am a newbie to the stuff but your explaining is great to follow along. Keep on the great work. Cheers!

  • Corey Schafer
    November 14, 2020

    hi,
    its me arslan, i am in trouble kindly help me resolve it please

    data.iloc[[0:20], 3]

    File "<ipython-input-82-8434a845f01f>", line 1

    data.iloc[[0:20], 3]

    ^

    SyntaxError: invalid syntax

  • Corey Schafer
    November 14, 2020

    Not only does he explains things well, I think he was trained/taught well because you can see that he does most things the most simple and efficient way most of the time. Really helps to understand the basics without a lot of noise around to confuse at the start. Best teacher I have come across in teaching Python.

  • Corey Schafer
    November 14, 2020

    thanks teacher i love this lesson
    the explanation is very high

  • Corey Schafer
    November 14, 2020

    Thank you Corey! you are the best!

  • Corey Schafer
    November 14, 2020

    while(True):
    Great = Great + Great

  • Corey Schafer
    November 14, 2020

    how does both df.info and df.info() work, I see they print different outputs though

  • Corey Schafer
    November 14, 2020

    Seriously!! This is one of its kind tutorials that I enjoy following and learning from. I actually wish that the video doesn't end. You don't teach us just basic stuff but gradually from beginning to advanced in such a subtle way that even a beginner like me can follow without any difficulty.

  • Corey Schafer
    November 14, 2020

    my school sucks and now I've just found my new teacher..

  • Corey Schafer
    November 14, 2020

    Does the word "series" INCLUDE the column header (key) too technically? Or is it all just the values of that column only? Thanks!

  • Corey Schafer
    November 14, 2020

    Good for data science

  • Corey Schafer
    November 14, 2020

    Amazing as always. Thank you!

  • Corey Schafer
    November 14, 2020

    Thank you Brilliant for sponsoring such great educational videos from Corey!

  • Corey Schafer
    November 14, 2020

    nice explanetion bro ¡¡

  • Corey Schafer
    November 14, 2020

    Hi Corey, great tutorials!

    I am getting the an error in output window in while trying run the following in vs code:
    import pandas as pd

    df = pd.read_csv(

    "D:AnalyticsPythonPandasCorey SchaferDeveloper Survey Datasetsurvey_results_public.csv")

    df.head

    Error: " 'c:UsersS' is not recognized as an internal or external command,
    operable program or batch file."

    Can you help?

  • Corey Schafer
    November 14, 2020

    Thank god for linear algebra

  • Corey Schafer
    November 14, 2020

    You are a terrific teacher, can't wait to watch your other videos. Thank you!

  • Corey Schafer
    November 14, 2020

    This is the most boring tutorial series i have ever watched for something i really want to learn. Sucks!

  • Corey Schafer
    November 14, 2020

    Struggling to find one good pandas tutorial tries some other good also but this one is the best

  • Corey Schafer
    November 14, 2020

    Corey Sir always posts mind blowing tutorials.Keep up the good work Sir,….:)

  • Corey Schafer
    November 14, 2020

    type(df.loc[[0,1,2],['SurveyLength']]) : DataFrame
    type(df['SurveyLength']) : Series
    Confused between DataFrame and Series. How to differentiate.

  • Corey Schafer
    November 14, 2020

    hello thx for ur videos. but could u tell me where can i find csv file or data excel file u are using in this video?

Write a comment