Python Pandas Tutorial (Part 4): Filtering - Using Conditionals to Filter Rows and Columns

  Рет қаралды 438,054

Corey Schafer

Corey Schafer

Күн бұрын

In this video, we will be learning how to filter our Pandas dataframes using conditionals.
This video is sponsored by Brilliant. Go to 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 write conditionals in or to filter our data within our Pandas dataframes. This is a fundamental skill to have when using Pandas because it is one of the first things most people do when starting a new Pandas project. Let's get started...
The code for this video can be found at:
bit.ly/Pandas-04
StackOverflow Survey Download Page - bit.ly/SO-Survey-Download
✅ Support My Channel Through Patreon:
/ coreyms
✅ Become a Channel Member:
/ @coreyms
✅ One-Time Contribution Through PayPal:
goo.gl/649HFY
✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot
✅ Corey's Public Amazon Wishlist
a.co/inIyro1
✅ Equipment I Use and Books I Recommend:
www.amazon.com/shop/coreyschafer
▶️ You Can Find Me On:
My Website - coreyms.com/
My Second Channel - / coreymschafer
Facebook - / coreymschafer
Twitter - / coreymschafer
Instagram - / coreymschafer
#Python #Pandas

Пікірлер: 312
@darshantawte7435
@darshantawte7435 Ай бұрын
Even in 2024 this is still the best tutorial out there for pandas. With AI becoming capable of performing EDA and data analysis (atleast elementary which is still better than many newbie analysts), i wonder how pandas will keep up with it.
@qualjyn2
@qualjyn2 4 жыл бұрын
Nothing like waking up a Saturday morning, and catching up on Coreys Python Pandas tutorial over a good cup of coffee :) @Corey, keep up the good work - it is really appreciated!
@sidneysousa3520
@sidneysousa3520 4 жыл бұрын
I said it! This is like Netflix :)
@onyekachinelson6999
@onyekachinelson6999 2 жыл бұрын
Okay. Today is Saturday. Lemme watch it and see for myself. Thanks!
@onyekachinelson6999
@onyekachinelson6999 2 жыл бұрын
The lesson is fantastic 👏
@cordularaecke
@cordularaecke 4 жыл бұрын
This is the best explanation of pandas dataframe boolean filtering I've ever seen - especially the inverse filter using the tilde - excellent - this is SO useful. Thank you
@parols1160
@parols1160 4 жыл бұрын
I guess 'flawless' is the only appropriate adjective for this whole series you are doing. Congrats from Italy Corey, keep it real!
@akiratoriyama1320
@akiratoriyama1320 4 жыл бұрын
Like THE BEST pandas tutorial on internet. Thanks again Corey!!
@MrGokTR
@MrGokTR 4 жыл бұрын
Thanks for sharing such an amazing series. You are basically representing the Zen of Python in person!
@akintonaolawalesamuel2236
@akintonaolawalesamuel2236 4 жыл бұрын
Lucid. Concise. Thanks a bunch, Corey, for all you do to make us Pythonistas
@clexyk
@clexyk 3 жыл бұрын
Corey, your tutorials of Python are the best stuff I have ever seen. The ones on Pandas is again of very high quality.
@motlatsimoea5615
@motlatsimoea5615 Жыл бұрын
Of all the teachers I have come across on KZbin, you are my favorite. The way you explain. The example exercises you use are simple enough to comprehend while also making me feel like I could handle bigger problems. I learned Django from you as well. Thank you for all your work!
@edilgin622
@edilgin622 3 жыл бұрын
i started learning python basics with you and i just cant believe how much i improved myself this year, thanks a lot!
@chrissteele9540
@chrissteele9540 4 жыл бұрын
You have a way of making any topic seem sooo simple... You're an incredible teacher! I owe most of my python skills to you btw ─ thanks :) Please keep the videos coming!
@tolulopeadedoyinadedoyin5239
@tolulopeadedoyinadedoyin5239 3 жыл бұрын
Corey is the best tutor , I have seen so far....He explains with ease and simplicity....More grace
@pierreroux-lafargue8227
@pierreroux-lafargue8227 4 жыл бұрын
You're a good man Corey Schafer, thanks for the quality content.
@Shailswap14
@Shailswap14 4 жыл бұрын
I have referred to three video tutorials/courses before this and this is by far the best course on pandas with complete coverage. You deserve a million likes for this series. This course is priceless.
@eduardolima5495
@eduardolima5495 3 жыл бұрын
Really, I'm so thankful for this series!! I really really appreciate your effort to make those videos and teach me something new!
@shanplays6001
@shanplays6001 4 жыл бұрын
Great series. I would recommend going through these tutorials once with the given dataset, and then going through it again using a dataset you're interested in. Dw, it will go alot faster the 2nd time around, and you'll get great practice actually finding insights you care about.
@Historiaplaying
@Historiaplaying 4 жыл бұрын
Corey, you're a god of teaching, you don't leave out anything unexplained. Thank you
@TopBagon
@TopBagon 4 жыл бұрын
Your tutorials are the best ones I've ever seen in my life ._. thanks you so much for those, we appreciate this a lot *Simply Amazing*
@ashylarry3442
@ashylarry3442 4 жыл бұрын
I let your ads play all the way thru. Fives minutes in exchange for what you’re giving...light work. Keep it up brotha!
@auroshisray9140
@auroshisray9140 3 жыл бұрын
Your tutorials are well structured and easy to understand. Thank you so much
@YeekyYeeky
@YeekyYeeky 4 жыл бұрын
Corey Schafer is really great at explaining things , thank you very much !
@zahidkamil7833
@zahidkamil7833 4 жыл бұрын
Can't wait for the string method you said in pandas. I am really looking forward for that. Thank you so much for all your effort and help! :)
@lilahinzelbergyifa292
@lilahinzelbergyifa292 4 жыл бұрын
Corey, this is simply great! Thanks!
@j3553hh
@j3553hh 9 ай бұрын
Your videos are so rich with practical guidance that I'm pausing every 90 seconds to make notes. This one took me three hours to get through.
@pythonstuff8633
@pythonstuff8633 3 жыл бұрын
Bro you have no idea what help you are giving us.Thank You Keep doing what you do!
@crazybigworld9357
@crazybigworld9357 Жыл бұрын
Thank you Corey. You're one of my best Python Teachers.
@mintymintfresh
@mintymintfresh 3 жыл бұрын
There is no better teacher on python than corey... He is simply the best one... I got to learn flask .. All thanks to corey.. There are thousands of students whom u are making a better programmer every day ...
@vijaybabu3923
@vijaybabu3923 4 жыл бұрын
Very fluid explanation of Pandas 👌 thanks Corey !
@tarunmahendra4233
@tarunmahendra4233 3 жыл бұрын
this is the best one ever. Really enjoying this series Thanks Corey!!
@JoshuaMurangaBauer
@JoshuaMurangaBauer Жыл бұрын
Your contents will never go obsolate mate. Pure Gold.
@dataguy3553
@dataguy3553 Жыл бұрын
thank you so much Corey for this Pandas playlist, I love them, they are super helpful.
@mazensleiman3863
@mazensleiman3863 3 жыл бұрын
a big fat thank you Corey, that is one amazing video. and I will definitely watch the whole series
@Lars7878
@Lars7878 4 жыл бұрын
I love that .Str.contains filter, that is a brilliant idea, I never came up with.
@josephsteen230
@josephsteen230 4 жыл бұрын
As per your request: I would like to see you upload a video about truth tables. I like the way you explain things, Corey. Your Panda series is helping a lot. So thanks for what you do!
@karina3440
@karina3440 Жыл бұрын
Another great tutorial! Thank you, Corey!
@rishikambhampati2862
@rishikambhampati2862 4 жыл бұрын
Though we have an idea of the concept, there will always be something new to learn from your videos. As usual thanks a lot.
@kingkai129
@kingkai129 4 жыл бұрын
I'm so thankful that I found your channel!!!!
@niralpatel3369
@niralpatel3369 3 жыл бұрын
You're a great man Corey Schafer, This is the best channel ever on KZbin. Thanks form India.
@larz4437
@larz4437 4 жыл бұрын
The often imitated, never duplicated, Corey Schafer. You're truly the python guide GOAT and us noobs bow before you. Thank you so much for this series and all your work.
@roywilson9580
@roywilson9580 4 жыл бұрын
Thanks, Corey for uploading this interesting, useful and educational video. It was a great help in understanding the process of filtering data in Pandas. Will be really useful to me.
@felipegutierre7037
@felipegutierre7037 Жыл бұрын
Corey, your job is awesome, thank you for this free content!
@eltorayy11
@eltorayy11 3 жыл бұрын
I really like the way you explained! Thank you so much
@prmurali1leo
@prmurali1leo 3 жыл бұрын
This is awesome, Coreys in the best tutor ever i have experienced
@mikshubhatt1175
@mikshubhatt1175 3 жыл бұрын
i appreciate your work. you are putting some serious efforts in your videos.
@rudiklein
@rudiklein 4 жыл бұрын
What can I say...great job with this series. Again.
@kingveelatte41
@kingveelatte41 3 жыл бұрын
Found this channel couple weeks ago, and I watch it almost everyday know, like watching fiction series i love. Thank you Corey for amazing video (I forgot if I already comment like this in another video but yeah Thank you as always)
@HaoranZhang-jc8fq
@HaoranZhang-jc8fq 3 күн бұрын
Your lectures are so great!!
@crackyflipside
@crackyflipside 4 жыл бұрын
Fantastic work as usual!
@anuragshukla7813
@anuragshukla7813 4 жыл бұрын
Thank you so much for posting the high quality and so knowledgeable video on youtube. And this is the best channel ever channel on youtube I have seen. You are doing great work keep it up, brother. Thank you again for these type videos, Please keep on posting these type of video in the future also.
@abanerjee3704
@abanerjee3704 3 жыл бұрын
That was the best quality content on Pandas. Keep it up brother. ALL THE BEST.
@sartajsingh8459
@sartajsingh8459 2 жыл бұрын
Thank you so much for making these videos. They are really helpful to me in learning ML and AI
@muntadher8087
@muntadher8087 2 жыл бұрын
Thank you Corey!! Amazing video
@danielflorea3001
@danielflorea3001 2 жыл бұрын
Really a pragmatic video on Pandas. Great work
@adventures_of_oliver
@adventures_of_oliver 4 жыл бұрын
Amazing tutorial series!
@MehmoodAhmedMooD
@MehmoodAhmedMooD 3 жыл бұрын
Thanks a lot for your superb tutorials man. Just the right amount of info for beginners
@Fantasy7117
@Fantasy7117 8 ай бұрын
I'm loving your lessons😊 thank you
@zohaibdev
@zohaibdev 2 жыл бұрын
Thank you so much. This series is amazing. 💖
@muhammedyousri4080
@muhammedyousri4080 2 жыл бұрын
Very useful as always , Thanks a lot Corey.
@nikolastamenkovic7069
@nikolastamenkovic7069 2 жыл бұрын
Great tutorial series!
@gibranportillo5876
@gibranportillo5876 4 жыл бұрын
You're the best. thanks so much!! Greetings From Mexico
@sshbk5878
@sshbk5878 2 жыл бұрын
Corey is the best, following you since 2020
@paulosergioschlogl9550
@paulosergioschlogl9550 4 жыл бұрын
You do a awesome job man!
@arifchowdhury7089
@arifchowdhury7089 2 жыл бұрын
So easy when Corey explains
@MrBoaredman
@MrBoaredman 2 жыл бұрын
This Tutorial, and you Sir, are life savers. Thank you so much
@JoshuaDHarvey
@JoshuaDHarvey 4 жыл бұрын
19:22 let us know when you do a video on strings! Can't wait for that and if you need any suggestions on any of the methods in the pandas .../text.html let us know! Thanks for all your hard work Corey!
@AmitMKrishnaR07
@AmitMKrishnaR07 2 жыл бұрын
Thank you! It's a great tutorial about Pandas!
@paulohsgoes1959
@paulohsgoes1959 Жыл бұрын
Just brilliant! Congrats
@KeithFlint350
@KeithFlint350 2 жыл бұрын
Proper tutorial with a proper English
@pythonwala510
@pythonwala510 4 жыл бұрын
Your video of pandas series is very helpfull for me to underatand python. I like your way of delivering the explanation. I'm eagerly waiting for your next video.
@supriya1316
@supriya1316 2 жыл бұрын
Great. I am really happy learning from your channel. You explain the concepts with so much clarity . Thanks a ton . Could you please also suggest some of the resources for practicing all the concepts learnt so far .
@angtranhai6457
@angtranhai6457 3 жыл бұрын
Amazing, thanks Corey.
@libertarianmonk7013
@libertarianmonk7013 Жыл бұрын
Thank you very much! The last command was the one I was looking for 😊
@user-sd2cd2vj1f
@user-sd2cd2vj1f 7 күн бұрын
Thanks for the 'data filtering' code as it helped in my project.
@anubhavrauniyar3192
@anubhavrauniyar3192 Жыл бұрын
We Love You Corey! Thanks
@shantanukaushikmathoholic
@shantanukaushikmathoholic 3 ай бұрын
awesome, this series is going good...
@thefireagen
@thefireagen 4 жыл бұрын
So far so good explanation..I have been watching the series since its started...I came again to revise. just a quick suggestion from my side...please give a suitable name to filter variable so that it will look readable if someone wants to understand whats happening.
@jorginh05
@jorginh05 Жыл бұрын
You saved my life!!! thank you for the content
@shamseshifat7825
@shamseshifat7825 4 жыл бұрын
Your in-depth knowledge in python is astonishing! The thing that always amazes me is, when you finish explaining a topic and I ask myself " Now what if I try to do that?" kinda questions and within no seconds I see you explaining the same question! 😳 Do you mind read your viewers or what? 😅 Anyways, you are a legend
@atulkumar7030
@atulkumar7030 4 жыл бұрын
He is an awesome tutor! Boss really impressed by your videos. Please start with ML based contents soon.
@Takk6
@Takk6 4 жыл бұрын
I rarely comment but I've watched alot of Pandas tutorials on youtube and this is by far the best one Ive seen. Subscribed. Will you be doing a Scikit-learn tutorial in the future?
@coreyms
@coreyms 4 жыл бұрын
Thanks! And yes, I will be covering that, but I don’t have a timeframe of when this will be yet.
@SotovisionHD
@SotovisionHD 4 жыл бұрын
THANKS! finally I get the filtering from pandas.
@alejandropaloalto538
@alejandropaloalto538 2 жыл бұрын
Thanks Corey, I see you from Mexico
@tsai94520
@tsai94520 4 жыл бұрын
That is really useful and clearly
@jeanaimegakwerere5359
@jeanaimegakwerere5359 4 ай бұрын
Love how you filtered comma rows with comma separated data👋
@ndiayemodou3474
@ndiayemodou3474 4 жыл бұрын
There is also someone from Senegal west Africa :) you are amazing !
@xmuta
@xmuta 4 жыл бұрын
Awesome series.
@fuzzywuzzy318
@fuzzywuzzy318 3 жыл бұрын
I'am from china !!!!!I am your new audiance ,and feel your video is really helpful!!!!!!!thanks!!!
@Rajesh-nb9de
@Rajesh-nb9de 3 жыл бұрын
This is the best library to learn pandas... love from india
@saikiranedits802
@saikiranedits802 4 жыл бұрын
Very very thankful for your videos. ❤ from INDIA
@richarda1630
@richarda1630 3 жыл бұрын
fantastic vid! thanks so much!
@benjamindeporte3806
@benjamindeporte3806 4 жыл бұрын
Very good. Thanks.
@jasonbwaljones
@jasonbwaljones 2 жыл бұрын
This is the holy grail series for Pandas in 2021
@afifkurniawansupriyadi8995
@afifkurniawansupriyadi8995 3 жыл бұрын
Oh Mann, this is an awesome Tutorial! thank you
@kelpie6902
@kelpie6902 9 ай бұрын
Awesome explanation
@interestingstudies4422
@interestingstudies4422 2 жыл бұрын
Your videos are amazing 👍🏻🙂
@shreerampattanayak6016
@shreerampattanayak6016 2 жыл бұрын
Great video !
@robbiedeegan3121
@robbiedeegan3121 2 жыл бұрын
Thank you Corey!
@hameem6845
@hameem6845 4 жыл бұрын
Just came to like. Will watch later.
@cudanakiju0
@cudanakiju0 2 жыл бұрын
I'm reviewing your tutorial for my interview, that's awesome! Just to clarify one thing (part staring at ~7:00) - when combining conditions, you MUST put separate conditions into parenthesis, otherwise pandas will most likely throw quite ugly and non-intuitive error. I think that should be stressed, wasted some time on it once ;)
@rafdnaah6078
@rafdnaah6078 4 жыл бұрын
Thanks for the excellent videos. I'm upgrading my database skills to data engineering and your channel is an excellent source of knowledge and skills building. I have one suggestion though; I'd appreciate if you do not overwrite previous statements in the same cell. Always start in a new cell, even if it is a trivial modification of the previous statement. Thanks
what is compiler? | how compiler works?
1:03
m.coding
Рет қаралды 104
Её Старший Брат Настоящий Джентельмен ❤️
00:18
Глеб Рандалайнен
Рет қаралды 8 МЛН
5 Tips To Write Better Python Functions
15:59
Indently
Рет қаралды 89 М.
Exploratory Data Analysis with Pandas Python
40:22
Rob Mulla
Рет қаралды 428 М.
How to filter a pandas DataFrame | 6 HELPFUL METHODS
17:27
Chart Explorers
Рет қаралды 28 М.
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,7 МЛН
5 Useful Dunder Methods In Python
16:10
Indently
Рет қаралды 51 М.