Video není dostupné.
Omlouváme se.

Python Pandas Tutorial 2: Dataframe Basics

Sdílet
Vložit
  • čas přidán 18. 08. 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/cod...
    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/cod..., 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.co...

Komentáře • 461

  • @codebasics
    @codebasics  Před 2 lety +4

    Check out our premium machine learning course with 2 Industry projects: codebasics.io/courses/machine-learning-for-data-science-beginners-to-advanced

  • @reeshatkhan9353
    @reeshatkhan9353 Před 4 lety +48

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

  • @nishushroff9656
    @nishushroff9656 Před 2 lety +34

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

    • @wasimbader5706
      @wasimbader5706 Před 11 měsíci

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

  • @coinsec
    @coinsec Před 7 lety +175

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

    • @zerostudy7508
      @zerostudy7508 Před 5 lety +10

      Comment==True

    • @m.arsalanbabar3303
      @m.arsalanbabar3303 Před 3 lety +1

      czcams.com/video/dXVTRrxcOWY/video.html
      Who should file Return of Income according to law
      Please like, comment, share and subscribe.
      Thank you

    • @yashkushwaha6940
      @yashkushwaha6940 Před rokem +1

      @@zerostudy7508 in

    • @Vertek11235
      @Vertek11235 Před 2 měsíci

      Actually a great beginners tutorial

  • @bishnudas8638
    @bishnudas8638 Před 4 měsíci +1

    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.

  • @questforprogramming
    @questforprogramming Před 5 lety +39

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

    • @rickandelon9374
      @rickandelon9374 Před 4 lety +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 Před 4 lety +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 Před rokem

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

  • @codebasics
    @codebasics  Před 4 lety +6

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

  • @classik305
    @classik305 Před 6 lety +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!!

  • @codebasics
    @codebasics  Před 5 lety +2

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

  • @Richard-pm8sd
    @Richard-pm8sd Před 6 lety +17

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

  • @Oz_blackprime
    @Oz_blackprime Před 9 měsíci +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 🙏🙏

  • @ushaakkina3355
    @ushaakkina3355 Před 7 měsíci +1

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

  • @alexlaverty8564
    @alexlaverty8564 Před 5 lety +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.

  • @samrathchadha5062
    @samrathchadha5062 Před 3 lety

    First video that got straight to the point

  • @parthkatlana1252
    @parthkatlana1252 Před 3 lety

    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 Před 6 lety +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ó!

  • @nepalimusician6445
    @nepalimusician6445 Před 2 lety +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  Před 2 lety +1

      🤗🙏🙏🤔

    • @wasimbader5706
      @wasimbader5706 Před 11 měsíci

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

  • @MrCEO-jw1vm
    @MrCEO-jw1vm Před 2 měsíci

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

  • @gobucbabu1583
    @gobucbabu1583 Před rokem +1

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

  • @phoenixvisual7410
    @phoenixvisual7410 Před 6 lety

    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

  • @saichaithrik7134
    @saichaithrik7134 Před 4 lety +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

  • @thecaveofthedead
    @thecaveofthedead Před 6 lety

    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.

  • @asadtanvir4065
    @asadtanvir4065 Před 6 lety +3

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

    • @ahmedhelal920
      @ahmedhelal920 Před 3 lety

      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 Před rokem

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

  • @user-ed4mb9rg5g
    @user-ed4mb9rg5g Před 8 měsíci

    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

  • @ragavsathis
    @ragavsathis Před 6 lety +3

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

  • @bhuvaneswarimanoharan8077
    @bhuvaneswarimanoharan8077 Před 6 měsíci

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

  • @shreedharchavan7033
    @shreedharchavan7033 Před 2 lety

    Its great that you don't cut video for errors

  • @renyildiz5155
    @renyildiz5155 Před rokem

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

  • @khubaibraza8446
    @khubaibraza8446 Před 5 lety

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

  • @mvcutube
    @mvcutube Před 3 lety

    The best video on data frame basics. Thank you

  • @arunkaruppaiah971
    @arunkaruppaiah971 Před 6 lety +1

    No words to say! Awesome explanation.

  • @learnerlearner4090
    @learnerlearner4090 Před 3 lety

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

  • @cartoon-wc4hm
    @cartoon-wc4hm Před 2 lety

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

  • @ArtArchitectureAndAI
    @ArtArchitectureAndAI Před 4 lety +1

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

  • @sanjaykrish8719
    @sanjaykrish8719 Před 6 lety

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

  • @TechBalu
    @TechBalu Před 5 měsíci

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

  • @arpanghosh680
    @arpanghosh680 Před 3 lety +1

    Thanks bro for teaching me dataframe

  • @hasankhalid
    @hasankhalid Před 6 lety

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

  • @badassopenpolling
    @badassopenpolling Před měsícem

    Naught-Book, nicely explained

  • @sep69
    @sep69 Před 5 lety +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 :)

  • @cameronemmanuel2426
    @cameronemmanuel2426 Před 6 lety

    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 Před 6 lety

      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 Před 6 lety

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

    • @cameronemmanuel2426
      @cameronemmanuel2426 Před 6 lety

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

  • @rumaizarizkin3728
    @rumaizarizkin3728 Před 6 lety

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

  • @rsdntevl
    @rsdntevl Před 6 lety

    A natural teacher!

  • @akhileshagarwal5913
    @akhileshagarwal5913 Před 5 měsíci

    Great Tutorial...I mean really Great Explaination

  • @motiongraphic5145
    @motiongraphic5145 Před 2 lety

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

  • @hagarali5009
    @hagarali5009 Před 5 lety

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

  • @MuhammadKashif-pd9em
    @MuhammadKashif-pd9em Před 3 lety +1

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

  • @lalitdevda7616
    @lalitdevda7616 Před 2 lety

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

  • @shantanubedajna6240
    @shantanubedajna6240 Před 6 lety +2

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

  • @syedmohammadpashaquadri1506
    @syedmohammadpashaquadri1506 Před 2 měsíci

    00:02 Data frame is the main object in Pandas used to represent tabular data.
    02:31 Importing data into a dataframe using read_csv function or Python dictionary
    05:11 Printing rows and columns using DataFrame head and tail methods
    07:57 Exploring DataFrame types and column printing in Python Pandas Tutorial 2
    10:38 Dataframe operations like max, mean, describe, and conditional selection are demonstrated.
    13:32 Using dot max to print specific row and column in dataframe
    16:06 Changing index and using loc function
    18:43 Setting index and unique index in Pandas Dataframe.
    Crafted by Merlin AI

  • @debashissahoo5031
    @debashissahoo5031 Před 6 lety +2

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

  • @anishamalblanco7386
    @anishamalblanco7386 Před 2 lety

    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.

  • @user-iv9mx7md8q
    @user-iv9mx7md8q Před 8 měsíci

    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

  • @ayushgupta80
    @ayushgupta80 Před 4 měsíci

    Data frame is a main object in Pandas . It is used to represent data with rows and columns ( tabular or excel spreadsheet like data)
    Code :
    import pandas as pd
    df = pd.read_csv("C:\\Users\\ayush\\Downloads\\weather_data.csv")
    df.shape # gives number of rows and columns
    df.head(2) # print starting 2 rows
    df.tail(2) # print last 2 rows
    df[2:5] # print row 2 to 4.
    df[:] or df # to print all the rows
    df.columns # gives all columns
    df.col_name # to print specific column
    df[['event','day']] # to print specific columns
    df['temperature'].max() # gives the max value present in temperature column
    # we can print -- mean()
    --- std() # standard deviation
    df[df.temperature >= 32] # condition
    pandas had many operations
    we can set / reset index.

  • @satishk1464
    @satishk1464 Před rokem

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

  • @musaddikhossain5862
    @musaddikhossain5862 Před 4 lety +1

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

  • @victorcostaricci3515
    @victorcostaricci3515 Před 2 lety

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

  • @vwindie
    @vwindie Před 3 lety

    Well explained
    Highly recommended for basics

    • @codebasics
      @codebasics  Před 3 lety

      I am happy this was helpful to you.

  • @techworm3533
    @techworm3533 Před 6 lety

    Sir your teaching methodology is awesome 👌

  • @KevinGalbraith
    @KevinGalbraith Před 5 lety

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

  • @senthilseng
    @senthilseng Před 5 lety

    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  Před 5 lety

      Great, I am glad you liked it Senthil.

  • @curiouscavin
    @curiouscavin Před 2 lety +1

    Thank you ….df=pd.read_csv(r’filepath\weather.csv) ……works

  • @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.

  • @sammodel000
    @sammodel000 Před 3 lety

    The explanation goes smoothly into the brain, if u listen carefully

    • @codebasics
      @codebasics  Před 3 lety

      ha ha... thanks Shaik

    • @sammodel000
      @sammodel000 Před 3 lety

      @@codebasics sir ur videos are superb, r u providing training also so i can join

  • @AnkitSharma-he9jj
    @AnkitSharma-he9jj Před 3 lety +1

    Legendary explanation 👏 🙌
    Today is my exam and I'm learning now at 5am....
    Thanks Sir👍🏻

    • @codebasics
      @codebasics  Před 3 lety +1

      👍☺️ wish you all the best for your exam Ankit

    • @AnkitSharma-he9jj
      @AnkitSharma-he9jj Před 3 lety +1

      @@codebasics Thank you sir 🙏 🙌

  • @asifnizamani7513
    @asifnizamani7513 Před 6 lety

    what a lovely explanation and knowledge sharing

  • @skkkks2321
    @skkkks2321 Před 5 lety

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

  • @nnennaumelloh8834
    @nnennaumelloh8834 Před 3 lety +1

    This is amazing! Thank you!

  • @sachinmaroky4600
    @sachinmaroky4600 Před 3 lety

    your videos are extremely helpful

  • @suyashpurwar8310
    @suyashpurwar8310 Před 5 lety

    Loving these series

  • @drewphillips3241
    @drewphillips3241 Před 6 lety

    Thanks for the clear and simple explanation.

  • @vishalzope1978
    @vishalzope1978 Před 4 lety

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

  • @guhanathanprathish9704

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

  • @flamboyantperson5936
    @flamboyantperson5936 Před 6 lety +1

    Amazing tutorial just love it. Thank you so much.

  • @alexandrelucas5621
    @alexandrelucas5621 Před 6 lety

    Very good! Congrats and keep up the good work!

  • @samuisuman
    @samuisuman Před 5 lety

    Clean and clear...Thumps up!

  • @michelesantos5716
    @michelesantos5716 Před 4 lety

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

    • @codebasics
      @codebasics  Před 3 lety +1

      I am happy this was helpful to you.

  • @nationhlohlomi9333
    @nationhlohlomi9333 Před rokem

    Thank you very much Sir.

  • @JoseAlvarez-dl3hm
    @JoseAlvarez-dl3hm Před 6 lety

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

  • @Gauravkr0071
    @Gauravkr0071 Před 4 lety

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

    • @codebasics
      @codebasics  Před 4 lety

      Sure gaurav. thanks for the comment.

  • @sagarrahate5140
    @sagarrahate5140 Před 3 lety

    Thank you so much, SIR.. Very helpful....

  • @MohdJaved-zd1ly
    @MohdJaved-zd1ly Před 7 lety

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

  • @panduenglishacademy7856
    @panduenglishacademy7856 Před 4 lety +1

    Great explanation

    • @codebasics
      @codebasics  Před 4 lety

      Glad it was helpful!

    • @panduenglishacademy7856
      @panduenglishacademy7856 Před 4 lety

      @@codebasics I have learnt python. What next I should learn. Give me a proper sequence please.

  • @abdulrazaque7715
    @abdulrazaque7715 Před rokem

    amazing sir✨

  • @kavithamandala1523
    @kavithamandala1523 Před 4 lety

    it's a great one ,it helped me to understand pandas

  • @shaikhalim5044
    @shaikhalim5044 Před 2 lety

    Nice teaching

  • @deepthisudhakaran6417
    @deepthisudhakaran6417 Před 3 lety

    Thank you! Outstanding tutorial

  • @NH-gl8do
    @NH-gl8do Před 3 lety

    You are very excellent

  • @jaankeels
    @jaankeels Před 2 lety

    Very nice job 😉

  • @movinsq07
    @movinsq07 Před 5 lety

    Awesome and easy to follow. Thank you.

  • @nateenglishlab783
    @nateenglishlab783 Před 2 lety

    Awesome tutorial thanks!

  • @fantacyuser
    @fantacyuser Před 6 lety

    excellent video sir..simple explanation....

  • @markdunham9949
    @markdunham9949 Před 3 lety

    thank you for this presentation

  • @bekturasanbekov1979
    @bekturasanbekov1979 Před rokem

    thx 4 vid man !

  • @chash_games
    @chash_games Před 3 lety

    awesome sir

  • @shanepython
    @shanepython Před 7 lety

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

  • @rgh1986aka199
    @rgh1986aka199 Před 7 lety +12

    awesome tutorial, thank you

    • @rgh1986aka199
      @rgh1986aka199 Před 7 lety

      codebasics may I know where you are located?

    • @rgh1986aka199
      @rgh1986aka199 Před 7 lety

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

    • @soumilshah3890
      @soumilshah3890 Před 5 lety

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

  • @mchandresh
    @mchandresh Před 7 lety

    thank you for awesome presentation. thumbs up!

  • @vameghmirtalebi2758
    @vameghmirtalebi2758 Před 5 měsíci

    nice video thanks❤

  • @shivanidubey1616
    @shivanidubey1616 Před 3 lety

    Thanks for video