NumPy Crash Course - Complete Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ต.ค. 2024

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

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

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

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

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

      hehe thanks :)

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

      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 6 หลายเดือนก่อน

      @@patloeber Sir, the handbook is not available.

  • @Ethan-po8ji
    @Ethan-po8ji ปีที่แล้ว +1

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

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

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

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

    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  3 ปีที่แล้ว

      Thanks! Really glad you like it :)

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

    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.

  • @AdinaAzhar-x6n
    @AdinaAzhar-x6n 8 หลายเดือนก่อน

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

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

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

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

      Thank you :)

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

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

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

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

      glad you like it!

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

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

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

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

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

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

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

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

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

    Many thanks for this. Absolutely amazing coverage and explanation.

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

      Glad you enjoyed it!

    • @DanDascalescu-dandv
      @DanDascalescu-dandv 5 หลายเดือนก่อน

      28:58 needs better explanation

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

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

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

      glad you like it!

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

    Very helpful! Thank you for making this!

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

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

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

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

  • @omar-elgammal
    @omar-elgammal 11 หลายเดือนก่อน

    Very practical and to the point explaination ! thanks a lot

  • @UditiChawla
    @UditiChawla ปีที่แล้ว +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?

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

    Huge thanks for such a concise video.

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

    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.

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

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

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

    This is brilliantly explained! Thanks alot!! 👍🏼

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

    great summary, thank you!

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

      Very welcome!

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

    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.

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

    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.

  • @Cheesestroker
    @Cheesestroker 6 วันที่ผ่านมา

    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.

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

    exponentially valued content! 🎉

  • @Vipul_775
    @Vipul_775 3 หลายเดือนก่อน +1

    Awesome course..must to go with🔥🫶🫶

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

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

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

      Danke :) Grüße zurück

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

    Thank you so much for the crash course👌🏻

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

      Sure! Glad you enjoyed it

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

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

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

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

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

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

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

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

    What application is he using to write the code?

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

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

  • @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 ปีที่แล้ว

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

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

    thank you for your awesome video bro 😘

  • @BN-hy1nd
    @BN-hy1nd ปีที่แล้ว

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

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

    many thanks buddy.

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

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

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

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

    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  3 ปีที่แล้ว

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

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

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

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

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

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

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

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

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

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

      both are great :)

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

    Thank You!

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

    thanks for your time for us

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

  • @kiwi-mf2do
    @kiwi-mf2do 11 หลายเดือนก่อน

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

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

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

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

    Thank you sir ..

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

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

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

    Which notebook is he using?

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

    thank you sir

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

      you're welcome

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

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

    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

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

    Do u have a video for pandas?

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

    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 3 ปีที่แล้ว +1

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

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

      @@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 3 ปีที่แล้ว +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 3 ปีที่แล้ว

      @@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 3 ปีที่แล้ว +1

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

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

    thank youuu

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

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

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

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

    thank you very much

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

      You are welcome

  • @incognito-ik9rh
    @incognito-ik9rh 3 ปีที่แล้ว

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

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

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

  • @a-aronpaulluminding3133
    @a-aronpaulluminding3133 3 ปีที่แล้ว

    Genius!

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

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

    Kindly do a video for Pandas also like this.

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

      Will definitely be added in the future :)

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

      @@patloeber Thanks

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

    I almost complete the practicing today.....

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

    thanks. 😍😍

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

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

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

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

    • @abuazfaar3662
      @abuazfaar3662 3 ปีที่แล้ว +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  3 ปีที่แล้ว +1

      No worries :) yeah you should come visit

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

    generating arrays

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

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

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

    Thanku SO mUCh..Please add Pandas too..

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

      yes this is on the list

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

    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!

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

    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 :)

  • @Jaeoh.woof765
    @Jaeoh.woof765 ปีที่แล้ว

    32:55 😀

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

    Pandas Tutorial plz

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

      Will definitely come in the future!

  • @Bartek-wn8rm
    @Bartek-wn8rm ปีที่แล้ว

    Good but you could explain these complicated math things

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

    I'm practicing .......

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

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

  • @DhruvAgrawal-je8oo
    @DhruvAgrawal-je8oo 2 หลายเดือนก่อน

    This course is amazing or not

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

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

    У канала 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

  • @НиколайНовичков-е1э
    @НиколайНовичков-е1э 2 ปีที่แล้ว

    Thank you!