Tutorial 5- Pandas, Data Frame and Data Series Part-1

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024
  • Hello All,
    Welcome to the Python Crash Course. In this video we will understand about Pandas library, Dataframes and Data Series
    github url : github.com/kri...
    Support me in Patreon: / 2340909
    Connect with me here:
    Twitter: / krishnaik06
    Facebook: / krishnaik06
    instagram: / krishnaik06
    If you like music support my brother's channel
    / @ultralifeproject
    Buy the Best book of Machine Learning, Deep Learning with python sklearn and tensorflow from below
    amazon url:
    www.amazon.in/...
    You can buy my book on Finance with Machine Learning and Deep Learning from the below url
    amazon url: www.amazon.in/...
    Subscribe my unboxing Channel
    / @krishnaikhindi
    Below are the various playlist created on ML,Data Science and Deep Learning. Please subscribe and support the channel. Happy Learning!
    Deep Learning Playlist: • Tutorial 1- Introducti...
    Data Science Projects playlist: • Generative Adversarial...
    NLP playlist: • Natural Language Proce...
    Statistics Playlist: • Population vs Sample i...
    Feature Engineering playlist: • Feature Engineering in...
    Computer Vision playlist: • OpenCV Installation | ...
    Data Science Interview Question playlist: • Complete Life Cycle of...
    You can buy my book on Finance with Machine Learning and Deep Learning from the below url
    amazon url: www.amazon.in/...
    🙏🙏🙏🙏🙏🙏🙏🙏
    YOU JUST NEED TO DO
    3 THINGS to support my channel
    LIKE
    SHARE
    &
    SUBSCRIBE
    TO MY TH-cam CHANNEL

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

  • @bhaveshsalvi4437
    @bhaveshsalvi4437 4 ปีที่แล้ว +42

    You were not right at (6:40) loc and iloc difference . For ones who want to know - loc is label-based, which means that we have to specify the name of the rows and columns that we need to filter out On the other hand, iloc is integer index-based. So here, we have to specify rows and columns by their integer index.
    Hope this clears out. Happy learning

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

      yeah u are right

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

      Thankyou for bringing this brother

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

      Yeah brother ! I appreciate

  • @manjushabhoyar5742
    @manjushabhoyar5742 5 ปีที่แล้ว +67

    When I was about to give up on data science, just then came across ur channel.. And I must say, you really explain concepts in the easiest way possible. Kudos! 😀

  • @sarveswarasastrysuri7284
    @sarveswarasastrysuri7284 5 ปีที่แล้ว +9

    Thank you so much Krish for the daily online classes. We are watching your videos daily and learning the new course. I appreciate all your hard work in doing so. You're presenting it really good. Keep doing the good work. Many thanks!

  • @gulabmeetyou
    @gulabmeetyou 5 ปีที่แล้ว +4

    Hi Krish,
    Thanks for making wonderful and useful videos. Just one thing I want to say that, your playlist is not clear, mixed with other content. When I opened Statistics playlist which mixed with EDA and other videos... Can you please make ur playlist clear. This would be more helpful. I am waiting... Thanks in advance!!!

  • @jatinmaggu1668
    @jatinmaggu1668 5 ปีที่แล้ว +11

    I have just started my transition to data science as a career, following your guidelines initially.
    Started the python course of yours waiting for more videos.
    Would request you if you can share your email, have few doubts.
    Thanks in advance

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

    Thanks for this great tutorial Krish. It is SUPER-AMAZING!!!

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

    What I understood at 6:54 these acronyms are;
    .loc = locator
    .iloc = index locator

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

    Hello sir!! You are literally teaching everything from the core and it's really helpful for me. Sir I am not getting an extended video of this class. Can anybody help me with the part of 5th class

  • @tejaswarambhe7464
    @tejaswarambhe7464 3 ปีที่แล้ว +2

    Me watching this playlist be like
    "Ye yaha gold pada hai but koi use hi nahi karna chahta"
    Guys there are hell lot of internship opportunities around, you will be exposed to good complex and real life data, which will help you for your Job roles later

  • @Ramesh-rp6jq
    @Ramesh-rp6jq 5 ปีที่แล้ว +3

    Hi krish
    Please let me know if ML course registration started

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

    Bhot khoob.
    Kya as a professional data scientist huma apna algo bnana prta han ya. Pre-build algo sa km chal jata ha?

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

    Can you please create a video of a Data Science Project Life Cycle? Like Data Loading, EDA, Removing not required columns, Feature Engineering and Scaling etc.

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

      Yes.I also try to watch every youtube video of ML.I try to figure out DS cycle or workflow.If u already findout,please do share to me

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

    What is the difference between loc and iloc .

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

    Your ML video consists of how much hours of video ???

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

    Nice I got one issue in sheet 1 I have multiple data in column one cell like (1,2,3,4) many cells I have to compare them with another column in sheet 2 but sheet 2 I have only single digit number in column cell like (1) if sheet 1 matches with sheet 2 then should replace with new values which is also present in sheet 2

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

    Hi Krish!
    When are you uploading next video in the machine learning series. Eagerly waiting for the next video. Kindly keep uploading videos daily in this playlist.

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

    Hey! Could you please create a video on how to use the arrow keys fast on a keyboard. I really suck in that and my coding typing speed is very slow just because of that.

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

    Hi Brother your video was so helpful to start with python for data science.Thank you for creating videos

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

    done!

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

    df-DataFrame "Great Use"
    why i am getting error for this command- df.loc['Column1'].values and able to execute- df.loc['Row1'].values
    Thanks! keep going!

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

      I think he mentioned that loc only for rows, iloc for both

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

    Sir, Can you make videos for competitive coding?

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

    @11:48 sound quality becomes much better.

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

    I love your lectures so much💯 Thank you for these lectures, Mr. Nail. I am so much grateful

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

    Hi Krish,
    I have been following your channels for quite bit of time and I would like to enroll in your class.
    The google form which you have uploaded seems broken.
    Could you please help me out.
    Thanks,
    Priyadarshi

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

    How to join your data science course

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

    df['row1'] ---> it is showing error sir..
    But why sir..

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

    Krish,
    Please do videos on RNN,CNN

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

    sir is the direct calling of columns as done at 16:15 applicable only for columns? it isn't for rows

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

      Yeah i tried using rows to call for columns but it gives error

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

    Sir...we can use google colab for these...

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

    Krish update video on data science mock interview

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

    Great video

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

    Hit like if u have typed *np.arrange* instead of *np.arange* 😅

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

    I don't understand about numpy.linspace in the previous video. It means some random numbers will be taken or what? @Krishnaik

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

      Linspace and arange both are used to make evenly spaced elements
      like: np.linspace(1,10,5) gives [1,3,5,7,9] where 5 is the no of elements .You can also use np.arange for that.

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

    Do i have to create an excel sheet manually for it do 3:59

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

    Hello...
    the following code is giving me KeyError: Column1 >>>>>>>>>>>> df['Column1'].value_counts()
    but this one is not >>>>>>>> df. loc['Row1'].value_counts()

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

    anybody pls share the link of sir's jupyter notebbok

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

    Only arange wasted my two hours because I wrote arrange instead of arange🙂😟

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

    how can i get this files which u r worked on ?

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

    Sir how to activate intelligence in jupyter notebook like you.. please comment sir

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

      Shift + tab should do it

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

    why i getting error when type df.loc['Column1'] but no error in df.loc['Row1']

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

    Sir, your book on Finance with Machine Learning and Deep Learning is not available on amazon.. i am looking for that book. can you please help me!!

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

    Thank u so much for all the tutorials.
    In case of df.to_html(),df.to_json() it works but df.to_excel() it shows error. What could be the possible reason? How can I convert it to excel format?

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

    Hi Krish, I have written this code df.iloc[0:2] and I am getting both Rows and Columns although I have not specified any columns. I checked the dtype it says dataframe. Could you please explain why am I getting this. Thank you

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

    Aap confuse ho toh students bhi confuse hoonge

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

    What do you mean by null value?
    Because in column 1 there's a zero value still it is showing column 1 has no null value

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

    hi krish..this shift tab is not working on my jupyter.. what to do to get the tool kit

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

    sir df.loc['Column1'] is not working but working for Rows

  • @DeepakGupta-uv1oh
    @DeepakGupta-uv1oh 11 หลายเดือนก่อน

    can we write df['Row1'] ?

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

    My code is saying your numpy doesn't have any attribute arrange. :( why ?

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

    Why df.loc['Column1'] is not working ?

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

    I am using google colab and not getting any test.csv file.. Please help

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

    Thank you sir

  • @theHindudailynews...
    @theHindudailynews... 5 หลายเดือนก่อน

    thanks sir

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

    Day 2 - 17/02/2024

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

    __init__() got an unexpected keyword argument 'Columns' Sir i face this error when i run this code so please help me out

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

      bro write columns instead Columns, your c is capital

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

    how to enable the dropdown list for all the function in df(pandas object)? I have to type to_csv but jupyter does not give me a dropdown list as a hint.

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

    Please anyone: What's the need to convert pandas dataframe to array using .values? Also are arrays and numpy arrays different , how?

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

    Thanks for amazing video. Could you please tell me which screen recorder application are u using?

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

    sir plese tell me pandas and numpy like library in java/scala

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

    df=pd.DataFrame(np.arange(0,30).reshape(5,6), index=['Row1','Row2','Row3','Row4','Row5'], Columns=['C1','C2','C3','C4','C5','C6'])
    this is showing an error, while working on jupyter notebook

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

      @Swat 'columns' is in case sensitive

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

    Hi sir is there any Ofline Course in Pune for Data-Science

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

    import pandas as pd
    h=pd.DataFrame(data=np.linspace(6,9,20).reshape(4,5),index=[f'Row{i}' for i in range(4)],columns=[f'Column{i}' for i in range(5)])
    print(h)

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

      to save dataframe without headers or indexes
      h.to_csv('csvfile.csv',index=False,header=None)

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

      what is that f you have used just before row?? and secondly that's a great way to write rows and columns.

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

    How to become members ? reply please

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

    Great and crisp tutorial....thanks

  • @SaiBaba-pu7kd
    @SaiBaba-pu7kd 4 ปีที่แล้ว

    Thanks Krish such a useful stuff you provided for a freshers to learn Numpy .

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

    Come back to 7:30.

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

    so help full for absolute beginners thanks so much sir

  • @rupendra.khangarot
    @rupendra.khangarot 2 ปีที่แล้ว

    df['Row2'].unique() is throwing error?

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

      what error it's showing?

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

    thank you alottt

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

    thanks

  • @vishalsonawane.8905
    @vishalsonawane.8905 2 ปีที่แล้ว

    Done❣️

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

    You are theeeee bestttt ....

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

    I am not able to use pandas library on jupyter. this error pops up :AttributeError: module 'pandas' has no attribute 'Dataframe' . Does anyone has solution to this error ?

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

      use DataFrame in this F needs to be capital then it will work and we already know python is a case sensitive

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

    good

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

    Thank you krish sir

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

    Ye wala lect pura bouncer gaya

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

    really helpful for beginners:)

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

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

    hi brother i getting error when i am executing this line
    pd.DataFrame(np.arange(0,20).reshape(4,5), index=['row1', 'row2', 'row3', 'row4', 'row5'], columns=['columns1', 'columns2', 'columns3', 'columns4', 'columns5'])
    we insall pandas like numpy in anaconda ?

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

      In reshape (4,5) given and in index entered 5 rows...I think that soo.

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

      you have given the row shape as 4 and labeling 5 rows, instead of 4. Make that little change :)

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

    when i try to execute the code am getting error as: AttributeError: module 'pandas' has no attribute 'Dataframe'

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

      DataFrame has a capital letter 'f'.

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

      @@makihungary i am also getting same error

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

      @@makihungary i tried with the same spelling im getting the same error

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

      did u find the solution bro

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

    What a teacher you are as a god for data science

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

    Thanks Krish

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

    Sir, how to get value_counts of all features at once without manually typing out all the column names??

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

      for col in df.columns:
      print(df[col].value_counts())

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

    Hi krish. I am working on this tutorial . I am getting error
    df=pd.DataFrame(np.arange(0,20).reshape(5,4),index=['Row1',....,['Row5'], columns=['column1'],....,['column5])

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

      I am getting the error on the above line that ,
      Shape of passed values is (4,5), indices (5,5)

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

      Sorry , i got the output . I had given 5 columns that's the reason I got the error

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

      df = pd.DataFrame(np.arange(0, 20).reshape(5,4), index=['Row1', 'Row2', 'Row3', 'Row4', 'Row5'], columns=[' Column1', ' Column2', ' Column3', ' Column4']

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

      @@Kennerdoll thank you,i got

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

    i didn't get info when i press shift tab

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

      That will give you the options in that method. Note, he is using jupyter notebook .

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

    what about rows null values at time 13:50

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

      He is checking for the entire dataframe and not just for the columns.

  • @123greenland
    @123greenland 4 ปีที่แล้ว

    Hello Krishna, I saw the playlist and what is the sequential flow do I follow to learn data science from your playlist? I am a complete beginner. Please assist me

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

      Yes go ahead

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

      @@krishnaik06 no I wanted to know from which playlists do I start & followed by other playlist. Need to know the complete learning path. Please assist

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

      Hello brother

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

      Can i have some discussion with you

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

    Watch this playlist for greater clarity on Pandas guys
    th-cam.com/video/F6kmIpWWEdU/w-d-xo.html

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

    Left corner....singam song 🔥😂

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

    video5//done
    12/04/2024

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

    13.33 to check null condition if null exits or not
    df.isnull()
    output: Column1 Column2 Column3
    Row1 False False False False
    Row2 False False False False
    Row3 False False False False
    Row4 False False False False
    Row5 False False False False