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

  Рет қаралды 471,159

Corey Schafer

Corey Schafer

Күн бұрын

Пікірлер: 327
@Skandagupta-theHunSlayer
@Skandagupta-theHunSlayer 4 ай бұрын
There's nothing in your videos that can't be understand. Absolutely crystal clear explanation. Thanks Corey, 4 years later, from India.
@qualjyn2
@qualjyn2 5 жыл бұрын
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 👏
@darshantawte7435
@darshantawte7435 8 ай бұрын
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.
@douma8037
@douma8037 5 ай бұрын
bro but i guess building large scale AI models from scratch will definitely need pandas regardless of AI being able to do EDA and Data Analysis
@darshantawte7435
@darshantawte7435 5 ай бұрын
@@douma8037 Yeah data cleaning will play a major role even in the future.
@douma8037
@douma8037 5 ай бұрын
@@darshantawte7435 yes! We’d need pandas for that.. unless some AI comes into play of course..
@cordularaecke
@cordularaecke 5 жыл бұрын
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 5 жыл бұрын
I guess 'flawless' is the only appropriate adjective for this whole series you are doing. Congrats from Italy Corey, keep it real!
@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!
@tolulopeadedoyinadedoyin5239
@tolulopeadedoyinadedoyin5239 3 жыл бұрын
Corey is the best tutor , I have seen so far....He explains with ease and simplicity....More grace
@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 ...
@Shaillha
@Shaillha 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.
@akiratoriyama1320
@akiratoriyama1320 5 жыл бұрын
Like THE BEST pandas tutorial on internet. Thanks again Corey!!
@motlatsimoea
@motlatsimoea 2 жыл бұрын
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!
@j3553hh
@j3553hh Жыл бұрын
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.
@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.
@niralpatel3369
@niralpatel3369 4 жыл бұрын
You're a great man Corey Schafer, This is the best channel ever on KZbin. Thanks form India.
@edilgin
@edilgin 4 жыл бұрын
i started learning python basics with you and i just cant believe how much i improved myself this year, thanks a lot!
@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.
@fuzzywuzzy318
@fuzzywuzzy318 4 жыл бұрын
I'am from china !!!!!I am your new audiance ,and feel your video is really helpful!!!!!!!thanks!!!
@cudanakiju0
@cudanakiju0 3 жыл бұрын
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 ;)
@Historiaplaying
@Historiaplaying 4 жыл бұрын
Corey, you're a god of teaching, you don't leave out anything unexplained. Thank you
@JoshBauerMuranga
@JoshBauerMuranga Жыл бұрын
Your contents will never go obsolate mate. Pure Gold.
@pierreroux-lafargue8227
@pierreroux-lafargue8227 4 жыл бұрын
You're a good man Corey Schafer, thanks for the quality content.
@MeherabHossainRaiyan
@MeherabHossainRaiyan 5 ай бұрын
I think it is the best tutorial i have ever seen in youtube. Good explanation sir.
@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!
@pythonstuff8633
@pythonstuff8633 4 жыл бұрын
Bro you have no idea what help you are giving us.Thank You Keep doing what you do!
@in_ashish
@in_ashish 5 ай бұрын
Corey is the reason i will be able to earn my bread and butter. Can't thank enough!
@sergiomunozblanco3843
@sergiomunozblanco3843 3 жыл бұрын
I don't understand the people that vote negative to these video lectures. They are really clear, they are concise, they are practical and they are interesting. Why?
@kapibara2440
@kapibara2440 11 ай бұрын
These must be some internet troll, no need to thank about them. Just ignore them.
@akintonaolawalesamuel2236
@akintonaolawalesamuel2236 5 жыл бұрын
Lucid. Concise. Thanks a bunch, Corey, for all you do to make us Pythonistas
@TopBagon
@TopBagon 5 жыл бұрын
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*
@nascentnaga
@nascentnaga 8 ай бұрын
this is fresh in 2024 :)
@Lars7878
@Lars7878 5 жыл бұрын
I love that .Str.contains filter, that is a brilliant idea, I never came up with.
@chrissteele9540
@chrissteele9540 5 жыл бұрын
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!
@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.
@josephsteen230
@josephsteen230 5 жыл бұрын
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!
@Rajesh-nb9de
@Rajesh-nb9de 3 жыл бұрын
This is the best library to learn pandas... love from india
@KeithFlint350
@KeithFlint350 3 жыл бұрын
4:20 if the filter is saved as a variable then you can easily use it many times in the code. Doesn't matter for a presentation at school, but matters a lot when you're building an actual app
@robertobr234
@robertobr234 2 жыл бұрын
I have watched this video many times. When I forget how to use LOC I come here to remember. It's one of the most useful functions in Pandas.
@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.
@MrGokTR
@MrGokTR 5 жыл бұрын
Thanks for sharing such an amazing series. You are basically representing the Zen of Python in person!
@YeekyYeeky
@YeekyYeeky 4 жыл бұрын
Corey Schafer is really great at explaining things , thank you very much !
@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)
@KeithFlint350
@KeithFlint350 3 жыл бұрын
Proper tutorial with a proper English
@ndiayemodou3474
@ndiayemodou3474 4 жыл бұрын
There is also someone from Senegal west Africa :) you are amazing !
@pouyarahimpour484
@pouyarahimpour484 Жыл бұрын
When negated the filt statement (9:19) you should have said 'and' instead of 'or'. Thanks for this great series.
@jasonbwaljones
@jasonbwaljones 3 жыл бұрын
This is the holy grail series for Pandas in 2021
@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.
@sshbk5878
@sshbk5878 2 жыл бұрын
Corey is the best, following you since 2020
@pythonwala510
@pythonwala510 5 жыл бұрын
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.
@junaidmalik9593
@junaidmalik9593 4 жыл бұрын
your playlist is amazing. to be honest i have taken dozens of courses online for python on many platforms but non of those have been completed beyond 20 %. looking forward to gain the skill here at least, as its fun to hear and v understandable
@rudiklein
@rudiklein 5 жыл бұрын
What can I say...great job with this series. Again.
@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
@zahidkamil7833
@zahidkamil7833 5 жыл бұрын
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! :)
@abanerjee3704
@abanerjee3704 4 жыл бұрын
That was the best quality content on Pandas. Keep it up brother. ALL THE BEST.
@kingkai129
@kingkai129 5 жыл бұрын
I'm so thankful that I found your channel!!!!
@anuragshukla7813
@anuragshukla7813 5 жыл бұрын
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.
@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.
@crazybigworld9357
@crazybigworld9357 2 жыл бұрын
Thank you Corey. You're one of my best Python Teachers.
@dmitrishostakovich3156
@dmitrishostakovich3156 4 жыл бұрын
There's a little mistake at 9:20. The opposite of this conditional has & instead of |. So: filt_2 = (df['last'] == "Schafer") | (df["first"] == "John") ~filt_2 = (df['last'] == "Schafer") & (df["first"] == "John") Still, great videos. I'm very grateful. Please keep it up.
@HaoranZhang-jc8fq
@HaoranZhang-jc8fq 6 ай бұрын
Your lectures are so great!!
@lilahinzelbergyifa292
@lilahinzelbergyifa292 4 жыл бұрын
Corey, this is simply great! Thanks!
@vijaybabu3923
@vijaybabu3923 5 жыл бұрын
Very fluid explanation of Pandas 👌 thanks Corey !
@dipanjan93
@dipanjan93 3 жыл бұрын
@Corey Many thanks for posting your tutorials mate. These are super helpful getting started with Pandas. I have a doubt @6:03, you mentioned that you prefer to use df.loc[filt, 'email'] for filtering over a specific column, however I was able to achieve the same with df[filt].email as well ? Do you mind explaining this. Thanks. Cheers!
@nicholasmaloof8378
@nicholasmaloof8378 5 жыл бұрын
Would you be willing to do a video on numpy?
@JoshuaDHarvey
@JoshuaDHarvey 4 жыл бұрын
I'm pretty new to python in general but isn't most of pandas built on numpy, so I imagine there is quite a bit of common ground between the two libs?
@jeetpatel6679
@jeetpatel6679 4 жыл бұрын
kzbin.info/www/bejne/h4a3Yol-nrGgo6s his tutorial is good
@deepdoshi2734
@deepdoshi2734 4 жыл бұрын
@@jeetpatel6679 Thank you
@sensei249
@sensei249 4 жыл бұрын
@@jeetpatel6679 that's the best available video for numpy, even i was going to suggest it. after 1 hour lecture you are ready to go.
@alenjose3903
@alenjose3903 4 жыл бұрын
@@jeetpatel6679 thanks
@SuperBhavanishankar
@SuperBhavanishankar 2 жыл бұрын
15:34 this SAVED MY INTERVIEW! 😗😗😗😗
@prmurali1leo
@prmurali1leo 4 жыл бұрын
This is awesome, Coreys in the best tutor ever i have experienced
@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!
@mazensleiman3863
@mazensleiman3863 3 жыл бұрын
a big fat thank you Corey, that is one amazing video. and I will definitely watch the whole series
@nikhilgoud9019
@nikhilgoud9019 3 жыл бұрын
The true,false series returned from filter it's actually same concept applied in RDBMS Whenever we apply condition only the true values of the rows are printed I really like the way you explain the stuff keep it going and thank you for your valuable content
@tarunmahendra4233
@tarunmahendra4233 3 жыл бұрын
this is the best one ever. Really enjoying this series Thanks Corey!!
@gibranportillo5876
@gibranportillo5876 5 жыл бұрын
You're the best. thanks so much!! Greetings From Mexico
@atulkumar7030
@atulkumar7030 4 жыл бұрын
He is an awesome tutor! Boss really impressed by your videos. Please start with ML based contents soon.
@압둘하미드이드리스
@압둘하미드이드리스 7 ай бұрын
Thanks for the 'data filtering' code as it helped in my project.
@saikiranedits802
@saikiranedits802 5 жыл бұрын
Very very thankful for your videos. ❤ from INDIA
@roywilson9580
@roywilson9580 5 жыл бұрын
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.
@jeanaimegakwerere5359
@jeanaimegakwerere5359 10 ай бұрын
Love how you filtered comma rows with comma separated data👋
@mosama22
@mosama22 Жыл бұрын
Thank you so much for the beautiful video 😊, would someone please put a link for the truth table Corey mentioned in the video. Thank you 😊😊
@parthagheda
@parthagheda 2 жыл бұрын
thank you so much Corey for this Pandas playlist, I love them, they are super helpful.
@danielflorea3001
@danielflorea3001 3 жыл бұрын
Really a pragmatic video on Pandas. Great work
@auroshisray9140
@auroshisray9140 4 жыл бұрын
Your tutorials are well structured and easy to understand. Thank you so much
@alexandertsiolkovski5848
@alexandertsiolkovski5848 4 жыл бұрын
@ 17:20, Corey, the doc for pandas 'contains' function says it has 'Regex = True' by default. I realized this when I searched for "C++" instead of "Python" when it gave me a "multiple repeat" error. In this case, it is essential to set regex to false or escape the '+' using "\".
@arifchowdhury7089
@arifchowdhury7089 3 жыл бұрын
So easy when Corey explains
@felipegutierre7037
@felipegutierre7037 2 жыл бұрын
Corey, your job is awesome, thank you for this free content!
@SotovisionHD
@SotovisionHD 4 жыл бұрын
THANKS! finally I get the filtering from pandas.
@vinikavashisht6004
@vinikavashisht6004 4 жыл бұрын
At 15:40, After filtering by 'Country' col, how can we filter by row? For example, if I only want to see 0-10 rows of this filtered df?
@mikshubhatt1175
@mikshubhatt1175 3 жыл бұрын
i appreciate your work. you are putting some serious efforts in your videos.
@sartajsingh8459
@sartajsingh8459 3 жыл бұрын
Thank you so much for making these videos. They are really helpful to me in learning ML and AI
@jessicasanger7194
@jessicasanger7194 5 жыл бұрын
Thank you!!! ☺️ This came just in time for me. I tried filtering the data by adding a series of True and False values as a column to the data frame😂
@eltorayy11
@eltorayy11 3 жыл бұрын
I really like the way you explained! Thank you so much
@hameem6845
@hameem6845 5 жыл бұрын
Just came to like. Will watch later.
@paulosergioschlogl9550
@paulosergioschlogl9550 4 жыл бұрын
You do a awesome job man!
@ShafrazThawfeek
@ShafrazThawfeek 5 жыл бұрын
Love from Sri Lanka!
@MehmoodAhmedMooD
@MehmoodAhmedMooD 4 жыл бұрын
Thanks a lot for your superb tutorials man. Just the right amount of info for beginners
@shantanukaushikmathoholic
@shantanukaushikmathoholic 10 ай бұрын
awesome, this series is going good...
@muntadher8087
@muntadher8087 2 жыл бұрын
Thank you Corey!! Amazing video
@muhammedyousri4080
@muhammedyousri4080 3 жыл бұрын
Very useful as always , Thanks a lot Corey.
@MANISH12665
@MANISH12665 6 ай бұрын
Hey Corey I have just completed your tutorial on flask i just love the way you taught . I have one request can you please make a tutorial on Python Pyramid framework . I found everywhere but there is no proper tutorial on Pyramid framework on youtube or any other learning platform Can you please make a tutorial on Pyramid framework
@jorginh05
@jorginh05 2 жыл бұрын
You saved my life!!! thank you for the content
@Fantasy7117
@Fantasy7117 Жыл бұрын
I'm loving your lessons😊 thank you
@sebastianmuller1210
@sebastianmuller1210 5 жыл бұрын
I like your videos. I want to suggest another "pandas" topic: Making Pivot Tabeles. Yes its a Matplotlib thing, but when i change from excel to pandas and want to do "all the tipical stuff", i won't look for a Matplotlib Tutorial. So you can introduce that skill in the Pandas Series as well.
@sina.sauron7014
@sina.sauron7014 Жыл бұрын
thank you so much. your tutorial is one of the best i have ever seen but i encountered a problem in min 15:33 my jupyter gives an error which says unhashable type : series ' what should i do?
@MrBoaredman
@MrBoaredman 3 жыл бұрын
This Tutorial, and you Sir, are life savers. Thank you so much
How to filter a pandas DataFrame | 6 HELPFUL METHODS
17:27
Chart Explorers
Рет қаралды 31 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Learn Python OOP in under 20 Minutes
18:32
Indently
Рет қаралды 164 М.
25 Nooby Pandas Coding Mistakes You Should NEVER make.
11:30
Rob Mulla
Рет қаралды 279 М.
Exploratory Data Analysis with Pandas Python
40:22
Rob Mulla
Рет қаралды 516 М.
Learning Pandas for Data Analysis? Start Here.
22:50
Rob Mulla
Рет қаралды 127 М.
Introducing Python in Excel
19:01
Leila Gharani
Рет қаралды 1,7 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН