NumPy Crash Course - Complete Tutorial

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

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

  • @patloeber
    @patloeber  4 года назад +18

    If you want to play around with the code, you can find my notebook here: github.com/patrickloeber/python-engineer-notebooks

  • @SaeedAhmed-wl7pb
    @SaeedAhmed-wl7pb 2 месяца назад +1

    I hope that every crash course on YT to be like yours, Thanks a lot for conciseness, clarification, and depending on practical coding!

  • @Ethan-po8ji
    @Ethan-po8ji 2 года назад +1

    Spent some hours to watch all content. It really helps a lot!!! Thank you!!

  • @AdinaAzhar-x6n
    @AdinaAzhar-x6n Год назад

    I have seen lots of tutorials of Numpy but I must say this one is just Amazing. Keep it up :)

  • @raminessalat9803
    @raminessalat9803 4 года назад +67

    School is a waste of time when youtubers like him exist!

    • @patloeber
      @patloeber  4 года назад +8

      hehe thanks :)

    • @Addistoday
      @Addistoday Год назад +2

      school is school cant compare, how can u get organized lesson on youtube for all subs, how you know which youtuber does it all?

    • @great_marshal
      @great_marshal Год назад +1

      Lol, that anger 😂

    • @azad2546421
      @azad2546421 10 месяцев назад

      @@patloeber Sir, the handbook is not available.

  • @Soundbeforelight
    @Soundbeforelight 4 года назад +10

    Thanks for this awesome tutorial. It's just what I needed to jump start my use of NumPy and I like how you followed a general flow with the NumPy : the Absolute Basics for Beginners documentation. I just learn better through visuals so this was perfect. I especially appreciated when you gave some insights as to when you'd use a certain method, like with indexing and filtering. I'm new to DS and ML so that added context is awesome! More of that please!
    Thank you!!!

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

      Thanks! Really glad you like it :)

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

    Amazing tutorial. Best use of my time. I was always apprehensive about getting started with python. This is exactly what I needed.

  • @aminsistani1629
    @aminsistani1629 4 месяца назад +1

    thank you for this video that was a good tutorial for those who have never worked with this library before

  • @joy2000cyber
    @joy2000cyber 3 года назад +2

    I love the dark background, easy to stare at the screen and concentrate.

  • @eyalpery8470
    @eyalpery8470 10 месяцев назад

    I liked this video a lot. I followed it by coding with you and also using GPT4 to fill my mathematical gaps.
    I especially liked the linear system example.

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

    this is the best u can get in an hour !!! thanks man for letting your heart out.

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

    thanks to fantastic use of technology and resources... now the entire planet feels really good about whats to come. good for you

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

    Love it. Feels like Señor chang is teaching!

  • @swagatabhattacharya7686
    @swagatabhattacharya7686 4 года назад +5

    Thanks! That was clear and to the point! Good crash course!

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

    thank you. watched this video in one take , felt great!

  • @AhamedathilKhan-x7c
    @AhamedathilKhan-x7c 3 месяца назад

    The best course that I've seen thank you

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

    Man, that's just wonderful to find this linear system notation, and numpy linear functions

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

    At 41:20, thanks for pointing out, as an aside, how something like a.max() can also be used as a function np.max(a). For the life of me, though, I can't understand why there are two ways to do operations like these in python especially since they do exactly the same thing. I mean, both leave the a untouched (they don't change it in place) so I don't know why np.max(a) with reassignment isn't the unique way of doing it.

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

    Thank you very much. This tutorial is perfect for a matlab programmer to learn numpy very quickly.

  • @omar-elgammal
    @omar-elgammal Год назад

    Very practical and to the point explaination ! thanks a lot

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

    first time enjoyed a tutorial this much

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

      Really glad to hear that!

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

    Thanks a lot for this free video!!

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

    Thank you Patrick, it is a very well made video. Learned a lot of useful numpy actions.

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

    the more i learn, the more i am appreciate about learning, the more i can put learning to good use.... and the more quality of life and ongoing strengthening and growth of the individual i experience. it is almost as if my time is worth nowhere near a fraction of yours, like some kind of silly goose ... i consider myself now dumber than 6 years ago. that is how much growth ive experienced.

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

    Very helpful! Thank you for making this!

  • @ariamirsh
    @ariamirsh 4 года назад +12

    Many thanks for this. Absolutely amazing coverage and explanation.

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

    Huge thanks for such a concise video.

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

    Excellent tutorial, thanks! Just one comment: you refer to some resources that should be linked in the descriptions (e.g., data loading tutorial), but are not there. Maybe you could add a comment saying where they can be found now.

  • @DanDascalescu-dandv
    @DanDascalescu-dandv 8 месяцев назад +1

    28:58 couod explain step by step what .argwhere outputs, and what .flatten dies to that output

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

    exponentially valued content! 🎉

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

    This is brilliantly explained! Thanks alot!! 👍🏼

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

    great summary, thank you!

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

    Thanks for this Numpy Crash Course Sir.
    It's really great, and you have explained very well in this tutorial.😊

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

    You are awesome 🌟
    Thanks for your fantastic video. You have an immense talent for teaching.

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

    At 18:10, it would have been nice if you explained what exactly the (2,) stood for when we have just one dimension: it seems like it stands for two rows and no columns, if you go by the syntax for the shape of multidimensional arrays. But that would mean it's an array "standing up", which is the transpose of what we typed in. So i suspect it means no rows and two columns, i.e an array "lying down", i.e. exactly what we typed in.
    Also, any idea why the transpose is just an attribute of the object i.e. a.T, whereas the diagonal is a full numpy function called on the object a i.e np.diag(a).
    To a beginner, or even intermediate user, it seems totally random and inconsistent when one uses methods and when one use functions, and also whether those functions are directly from the module np. e.g. np.diag or from an intermediate object e.g. np.linalg.det etc.
    It amounts to committing everything to memory. I thought the whole point of coding was that it was more elegant and consistent than this.

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

    Thank you so much for the crash course👌🏻

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

      Sure! Glad you enjoyed it

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

    thank you for your awesome video bro 😘

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

    Wonderful lecture. Just have one doubt, I dont understand the use of newaxis, since we already have reshape that can achieve the same results.Is there an example maybe where newaxis is used and reshape cant be used to achieve the same results?

  • @Vipul_775
    @Vipul_775 6 месяцев назад +1

    Awesome course..must to go with🔥🫶🫶

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

    9:21 the error was because of the numpy, am I right?
    Great tutorial, still watching it!

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

    13:22 Sir, why we place print(dot) outside for loop?

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

    You saved me ! Thanks a lot.
    Liebe Grüße aus Magdeburg

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

      Danke :) Grüße zurück

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

    Hello, thank you so much for the video; really useful and helpful! Quick question please: at 21:21, why is the determinant not exactly equal to -2? I am thinking it has to do with the int64 property, but I am not sure.

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

    it seems you are very kindhearted you make subject very love able thanks please upload pandas tutorial too.

  • @jabbbadahutt
    @jabbbadahutt Год назад +1

    What application is he using to write the code?

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

    Thank you a lot my friend. May God lead you to the right path.

  • @andrewalphones8769
    @andrewalphones8769 11 месяцев назад

    many thanks buddy.

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

    At 29:29 , why not simply do print(a[a%2==0])

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

    thanks for your time for us

  • @Cheesestroker
    @Cheesestroker 3 месяца назад

    What interface is he using for this? I am using jupyter notes but it doesn't show drop down list for all the commands when you type.

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

    Great video! I was wondering what was the difference between the fancy indexing and using np.argwhere? it seemed that both get the considered indices

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

      fancy indexing can take a list of all indices. argwhere takes a condition..

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

    Thanks
    Enjoyed numpy crash course, any possible to get a torch crash course ?

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

      thanks! For now I have a full beginner course. Maybe I add a little crash course, too...

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

    Thanks. Why autocomplete does not work on objects returned from Numpy method?

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

    19:02 : why do the rows not display as 2 and not '3'. Not sure how that make sense but the column number shows as 3. Anyone care to explain?

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

      a.shape gives the output (2,3). where 2 is the number of rows and 3 is the number of columns in a,
      [ 1 2 3 ] row 1
      [ 3 4 8 ] row 2

  • @НиколайНовичков-е1э

    Thank you!

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

    Very helpful. Thanks a lot. All concepts in a nutshell. God Bless yoo.

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

    Excellent video! I learnt so much. I did have a question thought. In the section for data types you gave us an example with a 1D array. Suppose we need to force the datatype for a 2D array, what would be the syntax in that scenario? I tried yours but it did not take.

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

      it would be like this:
      import numpy as np
      a = np.array([[1,2,3],[4,5,6]],dtype=np.int32)
      print(a.dtype)

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

    Thank you sir ..

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

    13:40 using range + index to loop iterables is not pythonic... in this case zip() function allows looping two lists in the same time.

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

    Greetings! Why use hstack or vstack instead of concatenate? Concatenate seems to do the job for both of those.

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

      yes indeed ! I guess programmers like simpler functions, same with np.zeros and np.ones that could be replaced with np.full

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

    thank you sir

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

    الف شكر صراحه انت مبدع

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

    Great tutorial. By the is there a reason why u don't use pycharm as IDE?

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

    thank youuu

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

    thank you very much

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

    5:40 I made it exactly the same way u did, but I get int32 instead of int64. My version of numpy is 1.19.3. Why did u get int64 and I get int32?

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

      possibly because you are either using 32-bit OS or installed 32-bit version of software running python script

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

      @@mohsinansari8271 Ty mohsin. Actually I have a Win 10 64-bit PC. What do u mean by software? I am using Python 3.9, my ide is pycharm.

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

      @@Kig_Ama check if pycharm is 32-bit. I checked numpy documentation and it said "The desired data-type for the array. If not given, then the type will be determined as the minimum type required to hold the objects in the sequence." You can always force to int64 though.

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

      @@mohsinansari8271 My pycharm should be 64 bit, at least thats what it says when I look it up by clicking About in the menu Help. Could it be that this is some weird windows issue? I found this here at stackoverflow: _"Default integer type __np.int__ is C long....But C long is int32 in win64."_

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

      @@Kig_Ama Yes probably some OS related issue. Dont bother too much. Its not an actual "issue" though.

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

    from my end. instead of appending, a + np.array(4) adds 4 to each element in my NumPy array. Why not using np.append(a,4)?

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

    thanks. 😍😍

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

    Do u have a video for pandas?

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

    Genius!

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

    Nice tutorial. Can we get the code used in crash course (maybe some github link)?

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

      there you go :) github.com/python-engineer/python-engineer-notebooks

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

      @@patloeber thank you!

  • @BN-hy1nd
    @BN-hy1nd Год назад

    I have Numpy version 1.25.1. So why do I get int32 for dtype. I am just starting numpy

  • @incognito-ik9rh
    @incognito-ik9rh 4 года назад

    so in indexing slicing,
    we never take the first element into account?

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

      of course you can take the first element into account. x[0:4] gives you elements 0, 1, 2, and 3

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

    Kindly do a video for Pandas also like this.

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

      Will definitely be added in the future :)

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

      @@patloeber Thanks

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

    Which notebook is he using?

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

    (base) -MBP ~ % import numpy as np
    zsh: command not found: import
    I am getting this massage. How to slove?

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

    generating arrays

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

    Thanks!!
    Please! What extensions or plugins you use in visual studio code for python?

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

      I'll make a video about this in the next few days :)

  • @kiwi-mf2do
    @kiwi-mf2do Год назад

    This feels like excel but with more steps. Noob here, Any reason we cant do these things in Excel?

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

    I almost complete the practicing today.....

  • @manikanthreddy1087
    @manikanthreddy1087 10 месяцев назад

    why didn't i know this guy before....

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

    Are you German cause Your accent is kind of one. Well thanks for this amazing crash course.

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

      Yep I’m German. Can’t hide my accent 😅

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

      @@patloeber hey, hope you didn't take this as offensive. Coincidentally, I was bored and I started watching Conan's(comedian) videos of berlin. From there I got the idea. BTW, I love Germany, its a dream destination for me. Love and peace from India. And I apologize if you find it offensive.

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

      No worries :) yeah you should come visit

  • @Jaeoh.woof765
    @Jaeoh.woof765 Год назад

    32:55 😀

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

    Thanku SO mUCh..Please add Pandas too..

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

      yes this is on the list

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

    Why wasn't list in Python developed the way Numpy works?

    • @hallo-xp2wh
      @hallo-xp2wh 2 года назад +2

      Both work differently
      also list is quick when dealing with small data whereas NumPy is quick at dealing large data

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

      @@hallo-xp2wh ty!

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

    Pandas Tutorial plz

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

      Will definitely come in the future!

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

    i think this is a fantastic use of python. the learning has been learned, no need for anybody else to be impressed with learning. we need more coal miners :)

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

    I'm practicing .......

  • @Bartek-wn8rm
    @Bartek-wn8rm Год назад

    Good but you could explain these complicated math things

  • @falakkhan4886
    @falakkhan4886 Год назад +1

    Great content. No offense but u sound like male Janice.

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

    Hey, how can I talk to you? Can you give your Telegram?

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

      not yet. I have Twitter. But I play to add another chat messenger in the future.

  • @DhruvAgrawal-je8oo
    @DhruvAgrawal-je8oo 6 месяцев назад

    This course is amazing or not

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

    У канала selfedu в разы качественнее курс по NumPy

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

    Topics not that clear - slicing of 2d arrays, np.newaxis, np.random(random vS randn - especially the 'meaning of distribution'), linalg part(involving eigenvalues and allclose) module

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

    Thank You!