Python Pandas Tutorial 2: Dataframe Basics

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ก.ค. 2024
  • This pandas tutorial covers basics on dataframe. DataFrame is a main object of pandas. It is used to represent tabular data (with rows and columns). This tutorial will go over,
    1) What is dataframe?
    2) Create dataframe from csv file and python dictionary
    3) Dealing with rows and columns
    4) Operations: mean, max, std, describe
    5) Conditional selection
    6) set_index function and usefulness of it
    Topics that are covered in this Python Pandas Video:
    0:00 Introduction
    0:15 What is Dataframe?
    2:02 Import pandas in jupyternotebook
    3:34 Create dataframeusing python dictionary
    5:15 Use head() method
    5:52 Use tail() method
    6:10 Use Indexing and slicing in dataframe
    8:12 Insert new cell in current cell
    8:39 What is the type of your dataframe?
    10:01 Operations with your dataframe
    10:34 Use max() method
    11:02 Use mean() method
    11:11 Use min() method
    11:23 Use describe() method
    12:12 Conditional select the data in your dataframe
    14:55 Pandas operations list
    15:41 Use set_index() method
    18:12 Use reset_index() method
    Code: github.com/codebasics/py/tree...
    Do you want to learn technology from me? Check codebasics.io/?... for my affordable video courses.
    Next Video:
    Python Pandas Tutorial 3: Different Ways Of Creating DataFrame
    • Python Pandas Tutorial...
    Very Simple Explanation Of Neural Network: • Neural Network Simply ...
    Popular Playlist:
    Complete python course: • Python 3 Programming T...
    Data science course: • Data Science Full Cour...
    Machine learning tutorials: • Machine Learning Tutor...
    Pandas tutorials: • Pandas Tutorial (Data ...
    Git github tutorials: • Git/Github Tutorial
    Matplotlib course: • Matplotlib tutorial
    Data structures course: • Data Structures And Al...
    Data Science Project - Real Estate Price Prediction: • Machine Learning & Dat...
    To download csv and code for all tutorials: go to github.com/codebasics/py, click on a green button to clone or download the entire repository and then go to relevant folder to get access to that specific file.
    🌎 My Website For Video Courses: codebasics.io/?...
    Need help building software or data analytics and AI solutions? My company www.atliq.com/ can help. Click on the Contact button on that website.
    #️⃣ Social Media #️⃣
    🔗 Discord: / discord
    📸 Dhaval's Personal Instagram: / dhavalsays
    📸 Codebasics Instagram: / codebasicshub
    🔊 Facebook: / codebasicshub
    📱 Twitter: / codebasicshub
    📝 Linkedin (Personal): / dhavalsays
    📝 Linkedin (Codebasics): / codebasics
    🔗 Patreon: www.patreon.com/codebasics?fa...

ความคิดเห็น • 460

  • @codebasics
    @codebasics  2 ปีที่แล้ว +4

    Do you want to learn python from me with a lot of interactive quizzes, and exercises? Here is my project-based python learning course: codebasics.io/courses/python-for-beginner-and-intermediate-learners
    To learn AI concepts in a simplified and practical manner check our course "AI for everyone": codebasics.io/courses/ai-for-everyone-your-first-step-towards-ai

  • @reeshatkhan9353
    @reeshatkhan9353 3 ปีที่แล้ว +45

    Highly recommended to those who are searching for the perfect tutorial on Pandas! He literally reads a learners mind!

  • @nishushroff9656
    @nishushroff9656 2 ปีที่แล้ว +34

    Literally, your pandas playlist is better than any other paid courses.
    Thank you so much ❤

    • @wasimbader5706
      @wasimbader5706 10 หลายเดือนก่อน

      really, u must have a very fast eyes movement. he is ok. great learning is good too. try both to learn more

  • @coinsec
    @coinsec 7 ปีที่แล้ว +174

    What a legend, explains it so well. Exactly what I needed. Thanks

    • @zerostudy7508
      @zerostudy7508 5 ปีที่แล้ว +10

      Comment==True

    • @m.arsalanbabar3303
      @m.arsalanbabar3303 3 ปีที่แล้ว +1

      th-cam.com/video/dXVTRrxcOWY/w-d-xo.html
      Who should file Return of Income according to law
      Please like, comment, share and subscribe.
      Thank you

    • @yashkushwaha6940
      @yashkushwaha6940 ปีที่แล้ว +1

      @@zerostudy7508 in

    • @Vertek11235
      @Vertek11235 หลายเดือนก่อน

      Actually a great beginners tutorial

  • @classik305
    @classik305 5 ปีที่แล้ว +7

    only half way through and I'm already excited about what I've gained from this! can't wait to try this when I get to the computer. thank you for such clear explanation!!

    • @zappist751
      @zappist751 2 ปีที่แล้ว

      ME TOO I AM SO EXCITED

  • @thecaveofthedead
    @thecaveofthedead 6 ปีที่แล้ว

    These are so great. I've been looking all over for the best introduction as a person converting from Excel, and yours is way better than others I've come across.

  • @codebasics
    @codebasics  4 ปีที่แล้ว +6

    Step by step roadmap to learn data science in 6 months: th-cam.com/video/H4YcqULY1-Q/w-d-xo.html
    How to learn coding for beginners | Learn coding for free: th-cam.com/video/CptrlyD0LJ8/w-d-xo.html

  • @codebasics
    @codebasics  5 ปีที่แล้ว +2

    Machine learning tutorials with exercises:
    th-cam.com/video/gmvvaobm7eQ/w-d-xo.html
    Step by step roadmap to learn data science in 6 months: th-cam.com/video/H4YcqULY1-Q/w-d-xo.html

  • @questforprogramming
    @questforprogramming 5 ปีที่แล้ว +36

    I am watching your videos in 2x...and I am still comfortable in understanding also saving my time..

    • @rickandelon9374
      @rickandelon9374 4 ปีที่แล้ว +1

      bharath bhimshetty take your time to learn from great teachers, try to fully understand what they are saying. Its not wasting time while learning cause you will inevitably waste your time on some other stupid things.

    • @EdiiXHD
      @EdiiXHD 4 ปีที่แล้ว +2

      Alt Cunningham jup, you prob won’t learn much from trying to speedrun the video. Taking your time and actually trying these functions is way more usefull.

    • @sameer9045
      @sameer9045 ปีที่แล้ว

      I'm also watching it in 2x. and later practicing 4x ....
      And believe it's worth it.

  • @gobucbabu1583
    @gobucbabu1583 ปีที่แล้ว +1

    Been going through your Python playlist and it's perfect. Absolutely great work on these videos.

  • @alexlaverty8564
    @alexlaverty8564 5 ปีที่แล้ว +15

    Awesome tutorial, thank you for putting this together, i've been learning Pandas in my spare time but I had quite a few light bulb moments watching your videos.

  • @Richard-pm8sd
    @Richard-pm8sd 6 ปีที่แล้ว +17

    Your tutorial is so good that I had to sign in to give you a thumbs up

  • @parthkatlana1252
    @parthkatlana1252 2 ปีที่แล้ว

    Thank you so much, I've literally searched for an hour now how to draw charts with conditions. I finally found it here.

  • @juliocesarbenavente9590
    @juliocesarbenavente9590 6 ปีที่แล้ว +2

    El video muy bien explicado. Paso a paso a fin de entender el proceso completamente bien. Por ahora no hay dudas. Espero que surgan pronto!
    Muchas gracias! Me encantó!

  • @sep69
    @sep69 5 ปีที่แล้ว +3

    Great tutorial ! Thank you so much for this explanation. Exactly what I was looking for.
    I am going to watch the next one right away :)

  • @bishnudas8638
    @bishnudas8638 2 หลายเดือนก่อน

    Treat this comment as appreciation.
    It's awesome to follow your videos and I am slowly getting a lot of hands-on in Python coding. I highly appreciate your efforts that people are getting educated with your videos.

  • @khubaibraza8446
    @khubaibraza8446 5 ปีที่แล้ว

    One of the Best tutorial i have seen about dataframes .. Bundle of thanks

  • @ushaakkina3355
    @ushaakkina3355 5 หลายเดือนก่อน +1

    I just started learning Python for data analytics and this is a very good explanation on how we can use pandas. Thank you😀

  • @Oz_blackprime
    @Oz_blackprime 8 หลายเดือนก่อน +1

    In the starting I learned Java script and I also used Notepad++ but now learning python from you bro you are super cool your videos are very interesting hands off 🙏🙏

  • @nepalimusician6445
    @nepalimusician6445 2 ปีที่แล้ว +9

    This is such a good tutorial. Simple and smooth without giving any complex explanation. Explaining by examples rather than the theory behind it. Thank you so much. Subscribed!!!

    • @codebasics
      @codebasics  2 ปีที่แล้ว +1

      🤗🙏🙏🤔

    • @wasimbader5706
      @wasimbader5706 10 หลายเดือนก่อน

      try others like great learning, Mosh, and few other plonkers.

  • @cartoon-wc4hm
    @cartoon-wc4hm 2 ปีที่แล้ว

    You are a great teacher. Thank you for helping me to start my data science journey.

  • @sanjaykrish8719
    @sanjaykrish8719 6 ปีที่แล้ว

    You made me very comfortable to use pandas. Kudos to you

  • @skkkks2321
    @skkkks2321 5 ปีที่แล้ว

    What a nice introduction to use Jupitor using DF,Excellent Sir.Learn something valuable...looking more and more.Thanks

  • @arunkaruppaiah971
    @arunkaruppaiah971 5 ปีที่แล้ว +1

    No words to say! Awesome explanation.

  • @debashissahoo5031
    @debashissahoo5031 6 ปีที่แล้ว +2

    thank you sir, you way of explanation is really amazing and it makes the concept simpler.

  • @ragavsathis
    @ragavsathis 6 ปีที่แล้ว +3

    Thanks for explaining it with clarify, this is what I have been looking for

  • @asadtanvir4065
    @asadtanvir4065 6 ปีที่แล้ว +3

    Thanks a lot for the video. Exactly what I was looking for. Keep making tutorials on data structure like this

    • @ahmedhelal920
      @ahmedhelal920 3 ปีที่แล้ว

      can you please help me on this code I want to make filter on the data frame about what it's temperature is > 13 , and I am coding on Pycharm , so I write it like this print(data_frame['tempreature']>13)

    • @eswarveeranki4191
      @eswarveeranki4191 11 หลายเดือนก่อน

      @@ahmedhelal920 df["temprature"][df["temprature"]>13]

  • @ArtArchitectureAndAI
    @ArtArchitectureAndAI 4 ปีที่แล้ว +1

    Awesome job. This is great tutorial for Pandas dataframe introduction. Thank you!

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      I am glad it was helpful

  • @JoseAlvarez-dl3hm
    @JoseAlvarez-dl3hm 6 ปีที่แล้ว

    Really great work mate, keep doing what you are doing, cheers!

  • @MrCEO-jw1vm
    @MrCEO-jw1vm 26 วันที่ผ่านมา

    Very effective teaching of pandas here. Thank you for such a great resource

  • @saichaithrik7134
    @saichaithrik7134 4 ปีที่แล้ว +1

    Sir you are great and you explained better than most of my faculty and online tutors thank you so much sir really helped a lot

  • @user-iv9mx7md8q
    @user-iv9mx7md8q 7 หลายเดือนก่อน

    I am enjoying this playlist very much. Also completed numpy, python as well. Your explanation style with real life data and examples is preety much fascinating and interesting and it motivates me to play with data which makes a good player in case of performing EDA. Thanks for your efforts for us sir

  • @user-ed4mb9rg5g
    @user-ed4mb9rg5g 6 หลายเดือนก่อน

    i found your videos so fascinating ,i had wached several videos before i got yours and there i understood nothing therefore thanks for an amazing tutorial

  • @shanepython
    @shanepython 7 ปีที่แล้ว

    Very informative and understandable. Thank you for sharing your knowledge.

  • @cameronemmanuel2426
    @cameronemmanuel2426 6 ปีที่แล้ว

    THANK YOU SOOOOOOO MUCH. UNREAL. I'VE BEEN STRUGGLING FOR DAYS AND DUDE YOU'VE EXPLAINED IT ALL SO EASY. A MILLION THUMBS UP! THANKS!!! :D

    • @cameronemmanuel2426
      @cameronemmanuel2426 6 ปีที่แล้ว

      Is there a command to show every variable in a column? For example if you had a large database with lots of different variables under 'Weather' would there be a command to show a list of them all and how many in each?

    • @cameronemmanuel2426
      @cameronemmanuel2426 6 ปีที่แล้ว

      Wow thanks so much! do you do online tutoring or anything at all?

    • @cameronemmanuel2426
      @cameronemmanuel2426 6 ปีที่แล้ว

      Ah okay. Thanks for your replies. Your videos are the best!!! :D

  • @flamboyantperson5936
    @flamboyantperson5936 6 ปีที่แล้ว +1

    Amazing tutorial just love it. Thank you so much.

  • @learnerlearner4090
    @learnerlearner4090 3 ปีที่แล้ว

    Learnt about using short cuts along with simple pandas code examples for dataframe. Thanks.

  • @abhinavmishra6648
    @abhinavmishra6648 5 ปีที่แล้ว

    This was very helpful! Thank you so much!

  • @shantanubedajna6240
    @shantanubedajna6240 6 ปีที่แล้ว +2

    you are doing better job explaining than sentdex . Awesome brother !!

    • @adityasinghaswal4923
      @adityasinghaswal4923 6 ปีที่แล้ว

      the speed at which he speaks is perfect for us Indians :)

  • @hasankhalid
    @hasankhalid 6 ปีที่แล้ว

    dude you are awesome. I dont leave comments but I learned soooo much. Saved my a** on my homework

  • @Jonathan-od5xc
    @Jonathan-od5xc 6 ปีที่แล้ว

    Man, this was fantastic. Thank you, sir.

  • @alexandrelucas5621
    @alexandrelucas5621 5 ปีที่แล้ว

    Very good! Congrats and keep up the good work!

  • @drewphillips3241
    @drewphillips3241 6 ปีที่แล้ว

    Thanks for the clear and simple explanation.

  • @annamorgiel
    @annamorgiel 7 ปีที่แล้ว

    really useful tutorial, I got all I needed. Thank you

  • @CyberPin2001
    @CyberPin2001 3 ปีที่แล้ว

    Excellent - so well presented with great ecplanations. I have looked at a lot of Pandas tutorials and these are the best I have come across. Very clear explanations and you can tell the presenter has a very good understanding of the subject. Something many others don't have. Will be checking out some of his other videos. 👍

  • @shreedharchavan7033
    @shreedharchavan7033 2 ปีที่แล้ว

    Its great that you don't cut video for errors

  • @techworm3533
    @techworm3533 5 ปีที่แล้ว

    Sir your teaching methodology is awesome 👌

  • @movinsq07
    @movinsq07 5 ปีที่แล้ว

    Awesome and easy to follow. Thank you.

  • @samrathchadha5062
    @samrathchadha5062 3 ปีที่แล้ว

    First video that got straight to the point

  • @rsdntevl
    @rsdntevl 6 ปีที่แล้ว

    A natural teacher!

  • @rumaizarizkin3728
    @rumaizarizkin3728 6 ปีที่แล้ว

    i have never seen such an excellent tutorial. explain in very simpler way with good ascent hats of to you

  • @anishamalblanco7386
    @anishamalblanco7386 2 ปีที่แล้ว

    Thank you Sir for this awesome tutorial. I could not grasp any idea about pandas from other videos. I luckily found this video and I am gonna complete the series and try different datasets.

  • @renyildiz5155
    @renyildiz5155 ปีที่แล้ว

    I have taken classes and I have the basics but still confused your made it sattle in my head. Thank youl

  • @mvcutube
    @mvcutube 3 ปีที่แล้ว

    The best video on data frame basics. Thank you

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Glad it was helpful!

  • @hagarali5009
    @hagarali5009 5 ปีที่แล้ว

    it's so much better than coursera python course in data analysis
    thank you

  • @musaddikhossain5862
    @musaddikhossain5862 4 ปีที่แล้ว +1

    Just Amazing!!! Appreciate you efforts sir. Thank you very much.

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      I am glad it was helpful

  • @asifnizamani7513
    @asifnizamani7513 6 ปีที่แล้ว

    what a lovely explanation and knowledge sharing

  • @phoenixvisual7410
    @phoenixvisual7410 6 ปีที่แล้ว

    I was searching for over a week the whole internet, how to print rows, where the country was "Germany" ("Snow"). You explained this in a few seconds. If I could give you 100 Likes, I would do this. Thank you very MUCH

  • @lalitdevda7616
    @lalitdevda7616 ปีที่แล้ว

    Great session of pandas, I learnt lot of about pandas DataFrame, Thank you sir for have a great session

  • @samuisuman
    @samuisuman 5 ปีที่แล้ว

    Clean and clear...Thumps up!

  • @nnennaumelloh8834
    @nnennaumelloh8834 3 ปีที่แล้ว +1

    This is amazing! Thank you!

  • @bhuvaneswarimanoharan8077
    @bhuvaneswarimanoharan8077 4 หลายเดือนก่อน

    clear cut explanation for beginners like me compared to paid courses. thanks sir

  • @mchandresh
    @mchandresh 7 ปีที่แล้ว

    thank you for awesome presentation. thumbs up!

  • @TechBalu
    @TechBalu 3 หลายเดือนก่อน

    A great explanation and covered almost important things in one video almost is superb, thanks a lot sir

  • @michelesantos5716
    @michelesantos5716 3 ปีที่แล้ว

    Thank you so much for this video. It has helped me a lot in understanding dataframes.

    • @codebasics
      @codebasics  3 ปีที่แล้ว +1

      I am happy this was helpful to you.

  • @KevinGalbraith
    @KevinGalbraith 5 ปีที่แล้ว

    Very well done. Easy to follow and explained simply. Thanks.

    • @codebasics
      @codebasics  5 ปีที่แล้ว

      glad you liked it kevin

  • @victorcostaricci3515
    @victorcostaricci3515 2 ปีที่แล้ว

    I really enjoyed you the way you explain. All success to you.

  • @itsvenkis1
    @itsvenkis1 6 ปีที่แล้ว

    Explained well, Good job and thanks

  • @oneramen
    @oneramen 5 ปีที่แล้ว

    Thanks for the tutorial. It helps a lot.

  • @MohdJaved-zd1ly
    @MohdJaved-zd1ly 7 ปีที่แล้ว

    Thanks man.....you have made the learning very easy.

  • @deepthisudhakaran6417
    @deepthisudhakaran6417 3 ปีที่แล้ว

    Thank you! Outstanding tutorial

  • @guhanathanprathish9704
    @guhanathanprathish9704 4 ปีที่แล้ว

    your way of teaching was amazing and very easy to understand the concepts.. Thank you so much sir.. ❤️❤️😊

    • @codebasics
      @codebasics  4 ปีที่แล้ว +1

      Prathish, I am glad 👍

  • @aaronanderson1068
    @aaronanderson1068 6 ปีที่แล้ว

    Great job! Thanks for the time.

  • @SophiaandHaakenPedersen
    @SophiaandHaakenPedersen 5 ปีที่แล้ว

    Excellent, thank you for your video, that is very helpful

  • @badassopenpolling
    @badassopenpolling 2 วันที่ผ่านมา

    Naught-Book, nicely explained

  • @fahadreda3060
    @fahadreda3060 6 ปีที่แล้ว

    Really Nice Tutorial, Thank You sir

  • @motiongraphic5145
    @motiongraphic5145 2 ปีที่แล้ว

    You are the best tutor ever, that helped me alot. Thank you

  • @rgh1986aka199
    @rgh1986aka199 7 ปีที่แล้ว +12

    awesome tutorial, thank you

    • @rgh1986aka199
      @rgh1986aka199 7 ปีที่แล้ว

      codebasics may I know where you are located?

    • @rgh1986aka199
      @rgh1986aka199 7 ปีที่แล้ว

      codebasics if you are from Delhi, I would have tried to meet you in person

    • @soumilshah3890
      @soumilshah3890 5 ปีที่แล้ว

      @@codebasics hey i live in Bridgeport would love to connect +1646 204 5957

  • @satishk1464
    @satishk1464 ปีที่แล้ว

    Very simple explanation and easy to understand.. Thank you !!

  • @suyashpurwar8310
    @suyashpurwar8310 4 ปีที่แล้ว

    Loving these series

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      😊 glad u liked it

  • @MuhammadKashif-pd9em
    @MuhammadKashif-pd9em 3 ปีที่แล้ว +1

    Really explained in a great way...love it❤️❤️

    • @codebasics
      @codebasics  3 ปีที่แล้ว +1

      Thank you so much 😀

  • @gregs138
    @gregs138 4 ปีที่แล้ว

    Nice video, thank you for going through all this!

  • @akhileshagarwal5913
    @akhileshagarwal5913 3 หลายเดือนก่อน

    Great Tutorial...I mean really Great Explaination

  • @Gauravkr0071
    @Gauravkr0071 4 ปีที่แล้ว

    keep posting such high quality content man.....love u

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      Sure gaurav. thanks for the comment.

  • @FLVCTVAT_NEC_MERGITVR
    @FLVCTVAT_NEC_MERGITVR 7 ปีที่แล้ว

    Excellent tutorial!

  • @praiseemma-iwuozo6938
    @praiseemma-iwuozo6938 ปีที่แล้ว

    Thank you Soo much for this course. I can't express enough how much this course has helped me. This free course is far better than any other paid courses I've seen so far. Thank you so much. I'm in a little fix on the path for the data frame. I mean where you fixed the path. I think my path is correct but each time I run, I keep seeing syntax error. please I need your help.

  • @vwindie
    @vwindie 3 ปีที่แล้ว

    Well explained
    Highly recommended for basics

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      I am happy this was helpful to you.

  • @senthilseng
    @senthilseng 5 ปีที่แล้ว

    Sir your explanation are very informative. People like me do not have coding background
    who want to understand Dataframe this is the right channel to learn
    Once again Thankyou verymuch for this kind vedios

    • @codebasics
      @codebasics  5 ปีที่แล้ว

      Great, I am glad you liked it Senthil.

  • @rajsamant1
    @rajsamant1 5 ปีที่แล้ว

    Thanks sir...the way you are explaining, it seems I will learn it very soon

    • @codebasics
      @codebasics  5 ปีที่แล้ว

      Yes you will for sure. And it is because you have keen interest and you are ready to put an effort.

  • @nateenglishlab783
    @nateenglishlab783 2 ปีที่แล้ว

    Awesome tutorial thanks!

  • @Soumirai
    @Soumirai 7 ปีที่แล้ว

    Good tutorial, thank you!

  • @vishalzope1978
    @vishalzope1978 4 ปีที่แล้ว

    Thanks a lot sir, u explained with very ease....

  • @crazypigs100
    @crazypigs100 7 ปีที่แล้ว

    ur the best!! inspiring

  • @rajeshk7908
    @rajeshk7908 5 ปีที่แล้ว

    Awesome tutorial thanks for sharing the knowledge.
    Can we apply theses data frames in spark ?

  • @dr.satyapatel7520
    @dr.satyapatel7520 6 ปีที่แล้ว

    Thanks codebasica, you are awesome. really helped me a lot

  • @dilipbhardwaj1699
    @dilipbhardwaj1699 6 ปีที่แล้ว

    Nice tutorial, thanks.

  • @bekturasanbekov1979
    @bekturasanbekov1979 11 หลายเดือนก่อน

    thx 4 vid man !

  • @shivamsamaiya6346
    @shivamsamaiya6346 4 ปีที่แล้ว +1

    How can we combine multiple rows with the same attribute (like rain) with their other values being suming up

  • @HomelessOnline
    @HomelessOnline 6 ปีที่แล้ว

    Another great tutorial, thank you! Any idea why your rows returned have borders and mine don't? It's an irrelevant question, I know.

  • @theprogrammingshuttle2975
    @theprogrammingshuttle2975 5 ปีที่แล้ว

    sent_index is widely missed in py tuto world, great vid 🎉