Python Pandas Tutorial 2: Dataframe Basics

Поделиться
HTML-код
  • Опубликовано: 11 ноя 2024

Комментарии • 468

  • @codebasics
    @codebasics  2 года назад +4

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

  • @nishushroff9656
    @nishushroff9656 2 года назад +35

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

    • @wasimbader5706
      @wasimbader5706 Год назад

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

  • @questforprogramming
    @questforprogramming 6 лет назад +45

    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.

  • @coinsec
    @coinsec 7 лет назад +182

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

    • @zerostudy7508
      @zerostudy7508 5 лет назад +10

      Comment==True

    • @m.arsalanbabar3303
      @m.arsalanbabar3303 4 года назад +1

      ruclips.net/video/dXVTRrxcOWY/видео.html
      Who should file Return of Income according to law
      Please like, comment, share and subscribe.
      Thank you

    • @yashkushwaha6940
      @yashkushwaha6940 2 года назад +1

      @@zerostudy7508 in

    • @Vertek11235
      @Vertek11235 5 месяцев назад

      Actually a great beginners tutorial

  • @ushaakkina3355
    @ushaakkina3355 9 месяцев назад +1

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

  • @bishnudas8638
    @bishnudas8638 6 месяцев назад

    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.

  • @classik305
    @classik305 6 лет назад +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

  • @Richard-pm8sd
    @Richard-pm8sd 6 лет назад +18

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

  • @Oz_blackprime
    @Oz_blackprime Год назад +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 3 года назад +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  3 года назад +1

      🤗🙏🙏🤔

    • @wasimbader5706
      @wasimbader5706 Год назад

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

  • @shreedharchavan7033
    @shreedharchavan7033 3 года назад

    Its great that you don't cut video for errors

  • @parthkatlana1252
    @parthkatlana1252 3 года назад

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

  • @renyildiz5155
    @renyildiz5155 Год назад

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

  • @МехронаГафурова-к1м
    @МехронаГафурова-к1м 10 месяцев назад

    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

  • @phoenixvisual7410
    @phoenixvisual7410 7 лет назад

    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

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

  • @MrCEO-jw1vm
    @MrCEO-jw1vm 5 месяцев назад

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

  • @codebasics
    @codebasics  4 года назад +6

    Step by step roadmap to learn data science in 6 months: ruclips.net/video/H4YcqULY1-Q/видео.html
    How to learn coding for beginners | Learn coding for free: ruclips.net/video/CptrlyD0LJ8/видео.html

  • @bhuvaneswarimanoharan8077
    @bhuvaneswarimanoharan8077 9 месяцев назад

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

  • @shaikusman536
    @shaikusman536 Месяц назад

    Awsome content...Great explanation...Far better than Paid Courses...Respect from Bangalore.

  • @ahmedhelal920
    @ahmedhelal920 3 года назад

    thank you so much but I am coding on Pycharm and I can't write the code that I want to make filter >13 I write it like this print(data_frame['tempreature']>13

  • @learnerlearner4090
    @learnerlearner4090 3 года назад

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

  • @mohsinali_78
    @mohsinali_78 3 года назад

    Marvellous❤

  • @AnkitSharma-he9jj
    @AnkitSharma-he9jj 3 года назад +1

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

    • @codebasics
      @codebasics  3 года назад +1

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

    • @AnkitSharma-he9jj
      @AnkitSharma-he9jj 3 года назад +1

      @@codebasics Thank you sir 🙏 🙌

  • @mvcutube
    @mvcutube 3 года назад

    The best video on data frame basics. Thank you

  • @abdulazizkhan4772
    @abdulazizkhan4772 3 года назад +1

    "No such file or directory" i m frustrated with this line please help me !!!😞😞

  • @vwindie
    @vwindie 3 года назад

    Well explained
    Highly recommended for basics

    • @codebasics
      @codebasics  3 года назад

      I am happy this was helpful to you.

  • @nitishkeshri2378
    @nitishkeshri2378 3 года назад

    should we bow......yes, he is legend!!....wooooow

  • @palakjindal3786
    @palakjindal3786 3 года назад

    day temperature windspeed event
    0 1/1/2017 32 6 Rain
    1 1/2/2017 35 7 Sunny
    2 1/3/2017 28 2 Snow
    3 1/4/2017 24 7 Snow
    4 1/5/2017 32 4 Rain
    5 1/6/2017 31 2 Sunny

  • @palakjindal3786
    @palakjindal3786 3 года назад

    import pandas as pd
    weather_data = {
    'day' : ['1/1/2017','1/4/2017'],
    'temperature' : [32,35],
    'windspeed' : [6,7]
    }
    df1 = pd.DataFrame(weather_data)
    df1 = pd.read_csv('weather_data.csv')
    df1
    why it doesnt provide only these three row result

  • @palakjindal3786
    @palakjindal3786 3 года назад

    i m unbale to dowbload file can you please tell me how it ll be download

  • @MuhammadKashif-pd9em
    @MuhammadKashif-pd9em 3 года назад +1

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

    • @codebasics
      @codebasics  3 года назад +1

      Thank you so much 😀

  • @palakjindal3786
    @palakjindal3786 3 года назад

    shall i get notes of all these class

  • @bhavanamayreddy7132
    @bhavanamayreddy7132 3 года назад

    My question might be lame but
    When setting another column as index,why is index column still exists?

  • @Artech.Ranjit
    @Artech.Ranjit 4 года назад

    where to define path if using dictionary method?

  • @mdmahabuburrashidkhan7561
    @mdmahabuburrashidkhan7561 4 года назад

    df[['day','event','temperature']]df[df.temperature==df['temperature'].max()]
    Why this command is showing invalid syntax error?
    Can anyone help?

  • @deepthisudhakaran6417
    @deepthisudhakaran6417 4 года назад

    Thank you! Outstanding tutorial

  • @karlavillarrealleal1254
    @karlavillarrealleal1254 4 года назад

    Thank you!

  • @solstice_flow
    @solstice_flow 4 года назад

    df.loc['1/3/2017'] is not working for the date. Rest all fields are working properly with df.loc. but date returns an error again and again. Can someone please help

  • @lauraduru1987
    @lauraduru1987 4 года назад

    If the csv file isn't in the jupyter notebook, what do I do?

    • @codebasics
      @codebasics  4 года назад

      You need to specify full file path in that case

  • @shivanidubey1616
    @shivanidubey1616 4 года назад

    Thanks for video

  • @pintokevin7057
    @pintokevin7057 4 года назад

    Commentaires

  • @nnennaumelloh8834
    @nnennaumelloh8834 4 года назад +1

    This is amazing! Thank you!

  • @bezualemtekalgne8724
    @bezualemtekalgne8724 4 года назад

    Thank you

  • @CyberPin2001
    @CyberPin2001 4 года назад

    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. 👍

  • @samrathchadha5062
    @samrathchadha5062 4 года назад

    First video that got straight to the point

  • @NH-gl8do
    @NH-gl8do 4 года назад

    You are very excellent

  • @harishraya67
    @harishraya67 4 года назад

    Tq but one doubt it's showing attribute error

  • @markdunham9949
    @markdunham9949 4 года назад

    thank you for this presentation

  • @sammodel000
    @sammodel000 4 года назад

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

    • @codebasics
      @codebasics  4 года назад

      ha ha... thanks Shaik

    • @sammodel000
      @sammodel000 4 года назад

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

  • @arpanghosh680
    @arpanghosh680 4 года назад +1

    Thanks bro for teaching me dataframe

  • @naveenreddy6798
    @naveenreddy6798 4 года назад

    But I don’t have excel how can I import?

  •  4 года назад

    Sir u r a genius 🤩🤩
    Ur lectures were really easy to understand even for a utter beginner like me 👍😃
    Love ❤️ from Tamilnaadu south of India 🇮🇳

  • @Pandimoori_krish
    @Pandimoori_krish 4 года назад

    import pandas as pd
    import numpy as np
    import matplotlib.pyplot as plt
    import seaborn as sns
    subset={ 'idno' : [1023, 1049, 1219, 1246, 1078, 1221 ],
    'name' : ['David','Amelia','Alan','Ram','Ashley','Jim' ],
    'team' : ['red','yellow','red','yellow','red',' yellow'],
    'strwgt': [189, 145, 192, 194, 127, 220 ],
    'endwgt': [165, 124, 192, 177, 118 , 184 ] }
    print(subset)
    print()
    print('CREATE ABOVE SUBSET AS A DATAFRAME' )
    print()
    df=pd.DataFrame(subset)
    print(df)
    user =input('Enter value:')
    for i in user:
    print(i)
    what is the error in above code i want retrive data as per user input please tell me

  • @abhishekratnawat7822
    @abhishekratnawat7822 4 года назад

    too slow at normal speed, watch it at 1.25x or 1.5x. and yes this guy is Amazing.

  • @michelesantos5716
    @michelesantos5716 4 года назад

    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.

  • @arpanshrestha468
    @arpanshrestha468 4 года назад

    import pandas as pd
    my_df=pd.DataFrame(Data=[4,5,6,7], index=range(0,4), columns=['A'])
    print(pd.DataFrame(my_df))
    TypeError: __init__() got an unexpected keyword argument 'Data'
    it shows like this please help me sir. Why dataframe as error ? :(

  • @reeshatkhan9353
    @reeshatkhan9353 4 года назад +53

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

  • @kunalkamble3540
    @kunalkamble3540 4 года назад

    Filter can be done in SQL, why need pandas

    • @codebasics
      @codebasics  4 года назад

      Yes exactly it is very similar to SQL but sometimes using it in program in memory can be beneficial. That's why people use pandas

    • @kunalkamble3540
      @kunalkamble3540 4 года назад

      @@codebasics, thank you for your reply. Sir, how can we use SQL and pandas more effective with minimum line of code. Please make video related to this.

  • @bhaveshprajapati922
    @bhaveshprajapati922 4 года назад

    NOTbook

    • @codebasics
      @codebasics  4 года назад

      I know buddy. I have improved my pronunciation till than. By the way did you like the content of this video ? any comment on that?

    • @bhaveshprajapati922
      @bhaveshprajapati922 4 года назад

      @@codebasics amazing content bud

  • @aarjavik123
    @aarjavik123 4 года назад

    thank you

  • @ankitgaur7695
    @ankitgaur7695 4 года назад

    Sir i am getting this error. I have already tried a lot methods to fix this problem but none of them are working. please help me to fix this.
    import pandas as pd
    import os
    df = pd.read_csv(r"H:\pandas coding\weather_data.csv")
    ParserError Traceback (most recent call last)
    in
    ----> 1 df = pd.read_csv(r"H:\pandas coding\weather_data.csv")
    ~\anaconda3\lib\site-packages\pandas\io\parsers.py in parser_f(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, skipfooter, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, cache_dates, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, doublequote, escapechar, comment, encoding, dialect, error_bad_lines, warn_bad_lines, delim_whitespace, low_memory, memory_map, float_precision)
    674 )
    675
    --> 676 return _read(filepath_or_buffer, kwds)
    677
    678 parser_f.__name__ = name
    ~\anaconda3\lib\site-packages\pandas\io\parsers.py in _read(filepath_or_buffer, kwds)
    452
    453 try:
    --> 454 data = parser.read(nrows)
    455 finally:
    456 parser.close()
    ~\anaconda3\lib\site-packages\pandas\io\parsers.py in read(self, nrows)
    1131 def read(self, nrows=None):
    1132 nrows = _validate_integer("nrows", nrows)
    -> 1133 ret = self._engine.read(nrows)
    1134
    1135 # May alter columns / col_dict
    ~\anaconda3\lib\site-packages\pandas\io\parsers.py in read(self, nrows)
    2035 def read(self, nrows=None):
    2036 try:
    -> 2037 data = self._reader.read(nrows)
    2038 except StopIteration:
    2039 if self._first_chunk:
    pandas\_libs\parsers.pyx in pandas._libs.parsers.TextReader.read()
    pandas\_libs\parsers.pyx in pandas._libs.parsers.TextReader._read_low_memory()
    pandas\_libs\parsers.pyx in pandas._libs.parsers.TextReader._read_rows()
    pandas\_libs\parsers.pyx in pandas._libs.parsers.TextReader._tokenize_rows()
    pandas\_libs\parsers.pyx in pandas._libs.parsers.raise_parser_error()
    ParserError: Error tokenizing data. C error: Expected 1 fields in line 4, saw 3

    • @ankitgaur7695
      @ankitgaur7695 4 года назад

      I got it now. I used another method called "read_excel" from pandas. with "read_excel" it is working but with "read_csv" it is not working. please anyone can tell me why?

  • @itsaclickbait4592
    @itsaclickbait4592 4 года назад

    is there anyone else who's hearing the sound only in left ear??

  • @frankservant5754
    @frankservant5754 4 года назад

    Thanks man

  • @balagopala7193
    @balagopala7193 4 года назад

    df.head() gives initial first 5 rows and df.tail() gives last 5 rows

  • @_Queeny_
    @_Queeny_ 4 года назад

    Sir I get an error like module not found??

  • @ManojSharmaX
    @ManojSharmaX 4 года назад

    14:22 select column and filter

  • @davida5989
    @davida5989 4 года назад

    Very good tutorial. Sub'd. Thank you.

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

  • @gobucbabu1583
    @gobucbabu1583 2 года назад +1

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

  • @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ó!

  • @thecaveofthedead
    @thecaveofthedead 7 лет назад

    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 7 лет назад +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 Год назад

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

  • @khubaibraza8446
    @khubaibraza8446 6 лет назад

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

  • @motiongraphic5145
    @motiongraphic5145 3 года назад

    You are the best tutor ever, that helped me alot. Thank 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.

  • @hasankhalid
    @hasankhalid 6 лет назад

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

  • @sanjaykrish8719
    @sanjaykrish8719 6 лет назад

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

  • @rumaizarizkin3728
    @rumaizarizkin3728 6 лет назад

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

  • @cartoon-wc4hm
    @cartoon-wc4hm 2 года назад

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

  • @cameronemmanuel2426
    @cameronemmanuel2426 7 лет назад

    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 7 лет назад

      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 7 лет назад

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

    • @cameronemmanuel2426
      @cameronemmanuel2426 7 лет назад

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

  • @shantanubedajna6240
    @shantanubedajna6240 7 лет назад +2

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

  • @hagarali5009
    @hagarali5009 6 лет назад

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

  • @ragavsathis
    @ragavsathis 6 лет назад +3

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

  • @OmkarShelke-w2j
    @OmkarShelke-w2j 11 месяцев назад

    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

  • @rsdntevl
    @rsdntevl 6 лет назад

    A natural teacher!

  • @shreyanshdangi4366
    @shreyanshdangi4366 14 дней назад

    very good starting for my understanding videoooo

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

  • @arunkaruppaiah971
    @arunkaruppaiah971 6 лет назад +1

    No words to say! Awesome explanation.

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

  • @badassopenpolling
    @badassopenpolling 4 месяца назад

    Naught-Book, nicely explained

  • @sep69
    @sep69 6 лет назад +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 :)

  • @satishk1464
    @satishk1464 Год назад

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

  • @codebasics
    @codebasics  5 лет назад +2

    Machine learning tutorials with exercises:
    ruclips.net/video/gmvvaobm7eQ/видео.html
    Step by step roadmap to learn data science in 6 months: ruclips.net/video/H4YcqULY1-Q/видео.html

  • @TechBalu
    @TechBalu 8 месяцев назад

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

  • @debashissahoo5031
    @debashissahoo5031 6 лет назад +2

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

  • @lalitdevda7616
    @lalitdevda7616 2 года назад

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

  • @KevinGalbraith
    @KevinGalbraith 5 лет назад

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

  • @shaikusman536
    @shaikusman536 Месяц назад

    Awsome content Daval ....Keep up

  • @akhileshagarwal5913
    @akhileshagarwal5913 7 месяцев назад

    Great Tutorial...I mean really Great Explaination