Python Pandas Tutorial (Part 7): Sorting Data




[ad_1]

In this video, we will be learning how to sort DataFrames in Pandas.

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 how to sort our data. We will learn how to sort single columns, sort multiple columns, and view the largest and smallest values in a DataFrame. Let’s get started…

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

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 19, 2020

    Hey everyone. Hope you're having a great week! I've tried taking your suggestions to heart and tried making the videos shorter without sacrificing any of the details I believe are important. Let me know if there is anything specific you want me to cover in Pandas as I continue this series. In the next video, we'll be learning how to group and aggregate data, which will open a lot of possibilities for exploring our data.

  • Corey Schafer
    November 19, 2020

    You are the best programming teacher on youtube. I wished I found you earlier. Thank you so much. You are a great teacher!

  • Corey Schafer
    November 19, 2020

    2 Million …I want to know what kind of developer they are 😂😂

  • Corey Schafer
    November 19, 2020

    I just want to find those idiots who disliked this series, I guess they are other avenger heroes who weren't mentioned😬

  • Corey Schafer
    November 19, 2020

    Mano, I'm Brazilian and I was trying to define a classification with two parameters and a specific order for each one, the video opened my eyes!

  • Corey Schafer
    November 19, 2020

    So I just found out and I thought I'd share it. You can run a Jupyter notebook in VS code. Ctrl+Shift+P and open 'Python: Open Start Page'. If you don't see it there you probably need a plugin.

  • Corey Schafer
    November 19, 2020

    Think there's different currency types so 2 million probably isn't in USD.

  • Corey Schafer
    November 19, 2020

    Couldnt thank you enough.

  • Corey Schafer
    November 19, 2020

    Corey, this is amazing. Thank you!

  • Corey Schafer
    November 19, 2020

    Some great people like you find teaching a bliss. Just unbelievable that such valuable lessons for FREE. Heartfelt Thanks for all the videos. God Bless you always

  • Corey Schafer
    November 19, 2020

    Dear Corey, I hear you noticed some viewers commented that they wanted shorter videos and you're going to change your future videos. Please don't do that – those comments are likely from beginners and would be harmful or even detrimental to an in-depth learning experience desired by intermediate and advanced learners. I hope you'll follow your heart and do what you like, rather than easily influenced by viewers unless there are dominant or overwhelming opinions toward the same suggestion.

  • Corey Schafer
    November 19, 2020

    Hello Corey, could you do series on machine learning tutorials. Many people would highly appreciate that! Python tutorials are awesome.

  • Corey Schafer
    November 19, 2020

    if we set the data on he basis of first the index wiil be jumbeled what should we do keep the sort on the basis of first but the index should be in order

  • Corey Schafer
    November 19, 2020

    make a series on Tensorflow and Keras please

  • Corey Schafer
    November 19, 2020

    You are best sir i seen most of the lecture ,please upload more on related to data science courses ,
    Thanks a lot sir

  • Corey Schafer
    November 19, 2020

    Hey Corey, I thought that you'll skip the joke about 2 mil salary, but no you did it. Kudos to you!
    Also, thanks you putting in all the effort in making these pandas tutorials. If lady luck get on my side and I start billion dollars company I shall probably hire you on a competitive salary (say 2 million).
    Cheers!

  • Corey Schafer
    November 19, 2020

    Corey. You are the best. This content is a national treasure and must be preserved. I can’t stress enough how much of a change you’re making in other people’s lives. Keep doing the good work! Love from India ❤️
    As far as the length is concerned, I really don’t mind how long it is. You make every second count, so that compensates for everything.

  • Corey Schafer
    November 19, 2020

    Absolutely the best Pandas tutorial on YouTube!

  • Corey Schafer
    November 19, 2020

    Python (Data structures & Algorithms ) – Much needed content from your channel

  • Corey Schafer
    November 19, 2020

    Amazing content ..A humble request to provide stuffs for Other data science libraries (Numpy & Scipy) .Hoping for the same

  • Corey Schafer
    November 19, 2020

    Thank you so much Man : ) : )

  • Corey Schafer
    November 19, 2020

    Hi Corey, if we want to specify the name of the country then, how to do that, please explain

  • Corey Schafer
    November 19, 2020

    at 12:25 How can I get only particular columns like Country and Hobbyist for nlarget(10) using a filter?

  • Corey Schafer
    November 19, 2020

    Why does he know those bunch of arguments for a certain method/function? Maybe most people already knew but just small tips for beginners to JupyterNB: object + . + tab will show you the methods available for a certain object, then you add a question mark after the method, run the cell, it will show you a detailed docstring for this method with decent examples. There is more information in the docstring and personally, I strongly recommend you check it out before starting to use it.

  • Corey Schafer
    November 19, 2020

    You are sponsored by Brilliant because you are brilliant!!!

  • Corey Schafer
    November 19, 2020

    Cant believe that these lectures are free of cost…..

  • Corey Schafer
    November 19, 2020

    Adding to the chorus here – make each section as long as you think you need to for the material you want to cover. As others have noted, there are pause and fast forward controls for us to use to play with. BTW, haven't downloaded the data yet, but as the sorted rows scrolled by, it looked like the $2M comp people entered annual salaries and indicatee they were weekly, which would convert to a very high annual salary.

Write a comment