Тёмный

NumPy Crash Course - Complete Tutorial 

Patrick Loeber
Подписаться 272 тыс.
Просмотров 121 тыс.
50% 1

Опубликовано:

 

11 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 140   
@patloeber
@patloeber 4 года назад
If you want to play around with the code, you can find my notebook here: github.com/patrickloeber/python-engineer-notebooks
@arnokyro5352
@arnokyro5352 2 года назад
Thank you so much
@raminessalat9803
@raminessalat9803 3 года назад
School is a waste of time when youtubers like him exist!
@patloeber
@patloeber 3 года назад
hehe thanks :)
@Addistoday
@Addistoday Год назад
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 Год назад
Lol, that anger 😂
@azad2546421
@azad2546421 5 месяцев назад
@@patloeber Sir, the handbook is not available.
@aminsistani1629
@aminsistani1629 День назад
thank you for this video that was a good tutorial for those who have never worked with this library before
@Soundbeforelight
@Soundbeforelight 3 года назад
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 :)
@SrijanChakraborty
@SrijanChakraborty 2 года назад
Amazing tutorial. Best use of my time. I was always apprehensive about getting started with python. This is exactly what I needed.
@Ethan-po8ji
@Ethan-po8ji Год назад
Spent some hours to watch all content. It really helps a lot!!! Thank you!!
@swagatabhattacharya7686
@swagatabhattacharya7686 3 года назад
Thanks! That was clear and to the point! Good crash course!
@patloeber
@patloeber 3 года назад
Thank you :)
@joy2000cyber
@joy2000cyber 3 года назад
I love the dark background, easy to stare at the screen and concentrate.
@patloeber
@patloeber 3 года назад
glad you like it!
@user-ek6eo6ly9j
@user-ek6eo6ly9j 7 месяцев назад
I have seen lots of tutorials of Numpy but I must say this one is just Amazing. Keep it up :)
@eyalpery8470
@eyalpery8470 5 месяцев назад
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.
@ariamirsh
@ariamirsh 3 года назад
Many thanks for this. Absolutely amazing coverage and explanation.
@patloeber
@patloeber 3 года назад
Glad you enjoyed it!
@DanDascalescu-dandv
@DanDascalescu-dandv 3 месяца назад
28:58 needs better explanation
@milfordjohnson2289
@milfordjohnson2289 2 месяца назад
thanks to fantastic use of technology and resources... now the entire planet feels really good about whats to come. good for you
@avishijain803
@avishijain803 Год назад
this is the best u can get in an hour !!! thanks man for letting your heart out.
@milfordjohnson2289
@milfordjohnson2289 2 месяца назад
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.
@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!
@kaizhang9530
@kaizhang9530 Год назад
thank you. watched this video in one take , felt great!
@ninadgandhi9040
@ninadgandhi9040 11 месяцев назад
Love it. Feels like Señor chang is teaching!
@slashtool
@slashtool 2 года назад
Thank you very much. This tutorial is perfect for a matlab programmer to learn numpy very quickly.
@vamsirahul
@vamsirahul 2 года назад
Very helpful! Thank you for making this!
@markkennedy9767
@markkennedy9767 9 месяцев назад
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.
@dodmedium
@dodmedium 11 месяцев назад
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.
@monsieur_piyushsingh
@monsieur_piyushsingh 3 года назад
first time enjoyed a tutorial this much
@patloeber
@patloeber 3 года назад
Really glad to hear that!
@jabbbadahutt
@jabbbadahutt Год назад
What application is he using to write the code?
@UditiChawla
@UditiChawla Год назад
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?
@omar-elgammal
@omar-elgammal 9 месяцев назад
Very practical and to the point explaination ! thanks a lot
@markkennedy9767
@markkennedy9767 9 месяцев назад
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.
@krugerbrent4270
@krugerbrent4270 Год назад
Thank you Patrick, it is a very well made video. Learned a lot of useful numpy actions.
@spencersedano
@spencersedano Год назад
9:21 the error was because of the numpy, am I right? Great tutorial, still watching it!
@logicpulse360
@logicpulse360 Год назад
Huge thanks for such a concise video.
@alexio98COD
@alexio98COD 10 месяцев назад
Thanks a lot for this free video!!
@Param3021
@Param3021 2 года назад
Thanks for this Numpy Crash Course Sir. It's really great, and you have explained very well in this tutorial.😊
@zipcomps1741
@zipcomps1741 3 года назад
great summary, thank you!
@patloeber
@patloeber 3 года назад
Very welcome!
@interesting_stuffs
@interesting_stuffs Год назад
exponentially valued content! 🎉
@VinayRajapuram
@VinayRajapuram 3 года назад
This is brilliantly explained! Thanks alot!! 👍🏼
@patloeber
@patloeber 3 года назад
thanks :)
@abhishekkumarmishras6373
@abhishekkumarmishras6373 3 года назад
it seems you are very kindhearted you make subject very love able thanks please upload pandas tutorial too.
@patloeber
@patloeber 3 года назад
Thanks 😊
@afrinmerchant9619
@afrinmerchant9619 3 года назад
You saved me ! Thanks a lot. Liebe Grüße aus Magdeburg
@patloeber
@patloeber 3 года назад
Danke :) Grüße zurück
@rvjenya
@rvjenya 3 года назад
You are awesome 🌟 Thanks for your fantastic video. You have an immense talent for teaching.
@rohanroy5873
@rohanroy5873 3 года назад
Thank you so much for the crash course👌🏻
@patloeber
@patloeber 3 года назад
Sure! Glad you enjoyed it
@mohamedachrafelmansouri3181
@mohamedachrafelmansouri3181 9 месяцев назад
Thank you a lot my friend. May God lead you to the right path.
@andrewalphones8769
@andrewalphones8769 7 месяцев назад
many thanks buddy.
@code_japi
@code_japi 9 месяцев назад
Thank You!
@fawadjamshidi9402
@fawadjamshidi9402 Год назад
thank you for your awesome video bro 😘
@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)?
@rimtapaswi670
@rimtapaswi670 Год назад
Thank you sir ..
@kheeleshpoonye6443
@kheeleshpoonye6443 2 года назад
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.
@ansariaburehan263
@ansariaburehan263 3 месяца назад
thank youuu
@balakrishnakumar1588
@balakrishnakumar1588 4 года назад
Thanks Enjoyed numpy crash course, any possible to get a torch crash course ?
@patloeber
@patloeber 4 года назад
thanks! For now I have a full beginner course. Maybe I add a little crash course, too...
@DanDascalescu-dandv
@DanDascalescu-dandv 3 месяца назад
28:58 couod explain step by step what .argwhere outputs, and what .flatten dies to that output
@IsfhanAhmed
@IsfhanAhmed 4 года назад
thanks for your time for us
@patloeber
@patloeber 4 года назад
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)
@BN-hy1nd
@BN-hy1nd Год назад
I have Numpy version 1.25.1. So why do I get int32 for dtype. I am just starting numpy
@kiwi-mf2do
@kiwi-mf2do 10 месяцев назад
This feels like excel but with more steps. Noob here, Any reason we cant do these things in Excel?
@mohammadzeinaghaji2499
@mohammadzeinaghaji2499 3 года назад
Thanks. Why autocomplete does not work on objects returned from Numpy method?
@pythonicman6074
@pythonicman6074 2 года назад
الف شكر صراحه انت مبدع
@damianmarciniec1756
@damianmarciniec1756 Год назад
generating arrays
@vishnuvardhanreddysyamala3654
@vishnuvardhanreddysyamala3654 3 года назад
Very helpful. Thanks a lot. All concepts in a nutshell. God Bless yoo.
@patloeber
@patloeber 3 года назад
thanks :)
@a-aronpaulluminding3133
@a-aronpaulluminding3133 3 года назад
Genius!
@God_For_A_Reason
@God_For_A_Reason Год назад
At 29:29 , why not simply do print(a[a%2==0])
@akalankasakalasooriya
@akalankasakalasooriya 3 года назад
thank you sir
@patloeber
@patloeber 3 года назад
you're welcome
@adipurnomo5683
@adipurnomo5683 3 года назад
13:22 Sir, why we place print(dot) outside for loop?
@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..
@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.
@jalilio5065
@jalilio5065 2 года назад
Do u have a video for pandas?
@fatemehsharifaskari6956
@fatemehsharifaskari6956 2 года назад
(base) -MBP ~ % import numpy as np zsh: command not found: import I am getting this massage. How to slove?
@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 :)
@vivekpandian08
@vivekpandian08 4 года назад
Kindly do a video for Pandas also like this.
@patloeber
@patloeber 4 года назад
Will definitely be added in the future :)
@vivekpandian08
@vivekpandian08 4 года назад
@@patloeber Thanks
@CompilationError
@CompilationError 3 года назад
thanks. 😍😍
@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
@wells111able
@wells111able 3 года назад
thank you very much
@patloeber
@patloeber 3 года назад
You are welcome
@aabidh5270
@aabidh5270 2 года назад
Which notebook is he using?
@Vipul_775
@Vipul_775 2 месяца назад
Awesome course..must to go with🔥🫶🫶
@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
@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!
@abuazfaar3662
@abuazfaar3662 3 года назад
Are you German cause Your accent is kind of one. Well thanks for this amazing crash course.
@patloeber
@patloeber 3 года назад
Yep I’m German. Can’t hide my accent 😅
@abuazfaar3662
@abuazfaar3662 3 года назад
@@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 года назад
No worries :) yeah you should come visit
@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
@manikanthreddy1087
@manikanthreddy1087 6 месяцев назад
why didn't i know this guy before....
@kidsmedia1102
@kidsmedia1102 3 года назад
I almost complete the practicing today.....
@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 года назад
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 года назад
@@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 года назад
@@Kig_Ama Yes probably some OS related issue. Dont bother too much. Its not an actual "issue" though.
@milfordjohnson2289
@milfordjohnson2289 2 месяца назад
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 😀
@SanyAnnieJohn
@SanyAnnieJohn 3 года назад
Thanku SO mUCh..Please add Pandas too..
@patloeber
@patloeber 3 года назад
yes this is on the list
@JoseManuelValdeolmillos
@JoseManuelValdeolmillos 4 года назад
Thanks!! Please! What extensions or plugins you use in visual studio code for python?
@patloeber
@patloeber 4 года назад
I'll make a video about this in the next few days :)
@Kig_Ama
@Kig_Ama 3 года назад
Why wasn't list in Python developed the way Numpy works?
@hallo-xp2wh
@hallo-xp2wh 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!
@kidsmedia1102
@kidsmedia1102 3 года назад
I'm practicing .......
@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
@DhruvAgrawal-je8oo
@DhruvAgrawal-je8oo Месяц назад
This course is amazing or not
@falakkhan4886
@falakkhan4886 Год назад
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.
@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
@user-co6pu8zv3v
@user-co6pu8zv3v 2 года назад
Thank you!
Далее