numpy tutorial - slicing/stacking arrays, indexing with boolean arrays

  Рет қаралды 162,204

codebasics

codebasics

Күн бұрын

Пікірлер: 92
@codebasics
@codebasics 2 жыл бұрын
Do you want to learn python from me with a lot of interactive quizzes, and exercises? Here is my project-based python learning course: codebasics.io/courses/python-for-beginner-and-intermediate-learners
@BrianMantel
@BrianMantel 2 жыл бұрын
Well done. I really like the fast pace and you still didn't miss anything. This was exactly what I was looking for.
@mukeshbarnwal2705
@mukeshbarnwal2705 Жыл бұрын
graph?
@ray811030
@ray811030 7 жыл бұрын
It's awesome tutorial. Using graph to express what code do is pretty impressive. Appreciate your effort :)
@kevinzhang8974
@kevinzhang8974 7 жыл бұрын
Best tutorial I see so far.... thank you!
@wasimlearner25
@wasimlearner25 6 жыл бұрын
awesome tutorial... being from a no technical background, i enjoy and understand your tutorials better than most online videos.. :)
@Biocreator
@Biocreator 3 жыл бұрын
Using graph to express what code do is really pretty impressive.
@Mehmet-xg5cn
@Mehmet-xg5cn 2 жыл бұрын
Clear and straightforward. Thank you
@billwindsor4224
@billwindsor4224 6 жыл бұрын
Great tutorial on NumPy arrays, array addressing, and array computations - *thank you!*
@tejas8211
@tejas8211 7 жыл бұрын
Very nice tutorials man. I learned and enjoyed this very much.
@MakadamSGP
@MakadamSGP 7 жыл бұрын
Your tutorials are very helpful and very well explained, thank you very much, they are awesome !!!!
@quantlfc
@quantlfc 7 жыл бұрын
Really appreciate your efforts!!! Amazing tutorial!
@qzorn4440
@qzorn4440 6 жыл бұрын
fantastic numpy tutorial. thanks.
@kasyapdharanikota8570
@kasyapdharanikota8570 3 жыл бұрын
Thank you very much sir, cleared all my doubts
@sam-j4zy
@sam-j4zy 4 жыл бұрын
good job codebasic
@jamjam3448
@jamjam3448 4 жыл бұрын
Thanks very much bro. You saved my time.
@pathummudannayake6947
@pathummudannayake6947 7 жыл бұрын
Great stuff. Learnt a lot. 5 stars!
@JMSchomburg
@JMSchomburg 5 жыл бұрын
Thank you so much! Slicing doesn't take into account the last 'stop at' row indicated, which isn't clearly stated in SciPy documentation (unless I missed it). Anyhow, your tutorial makes things much more intuitive. Merci!
@codebasics
@codebasics 5 жыл бұрын
Even with regular python lists that is true and they have mentioned it in python documentation. Not sure about scipy docs though. But anyways now you know it and will remember it 😊
@JMSchomburg
@JMSchomburg 5 жыл бұрын
Did you know that I'm still new to Python (and Numpy)? Anyhow, thanks again for making it all clear: something tells me that I'll be returning to your channel again soon ; )@@codebasics
@shubham4516
@shubham4516 4 жыл бұрын
@@codebasics could you please share the github link
@Gauravsharma-et5kx
@Gauravsharma-et5kx 7 жыл бұрын
numpy is super , thanks, hope u give python stuff in future too... ,ur way is too nice
@nireshbehari8333
@nireshbehari8333 3 жыл бұрын
This was a great skill to learn...thank you Bhavel:)
@rgm2754
@rgm2754 3 жыл бұрын
Very good explained,. Just what I was looking for. Thanks
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@charmindesai3730
@charmindesai3730 3 жыл бұрын
A very heartily thanks to you for you awesome videos, thank you so very much !!!
@HelionDark
@HelionDark 7 жыл бұрын
Good overview! thank you!
@rionbeats9935
@rionbeats9935 2 жыл бұрын
Thanks, helped alot ... 😄
@ashokkumar-lg8tt
@ashokkumar-lg8tt Жыл бұрын
@ (8:59) how the hsplit works when we call for a np.hsplit(a,3) only by 3???
@alberteinstein1040
@alberteinstein1040 7 жыл бұрын
Totally helpful!
@awais3791
@awais3791 2 жыл бұрын
Thanks for awesome explain
@lvbigtime88
@lvbigtime88 2 жыл бұрын
Amazing - cheers
@apravatiseema6675
@apravatiseema6675 Жыл бұрын
Awesome sir
@ruxinxie9739
@ruxinxie9739 4 жыл бұрын
so clear, thank!
@saifullahshahen
@saifullahshahen 4 жыл бұрын
Sir, I just start data science from your channel. I just have completed my python course from udemy. i have two question. please answer me: 1. should I learn more about NumPy or this is enough for a beginner?? 2. After completing this what should learn next??
@iamsantosh
@iamsantosh 7 жыл бұрын
Superb tutorial Man. Thumbs up to you.
@stephaniesu8402
@stephaniesu8402 6 жыл бұрын
Great tutorials!
@adhavana8197
@adhavana8197 5 жыл бұрын
Thanks for your effort, this was helpful
@codebasics
@codebasics 5 жыл бұрын
Adhavan, I am glad you liked it.
@alokyarneni6154
@alokyarneni6154 7 жыл бұрын
please, try to add videos related to scipy, matlplotlib,
@danielevans5125
@danielevans5125 5 жыл бұрын
Thank you for making this - very helpful.
@codebasics
@codebasics 5 жыл бұрын
My pleasure daniel
@YashSharma-xh2eh
@YashSharma-xh2eh 7 жыл бұрын
great video dude, please do make more.
@rohanrawat3950
@rohanrawat3950 5 жыл бұрын
very helpful tutorial sir..much appreciated!
@codebasics
@codebasics 5 жыл бұрын
Glad to hear that Rohan
@DaniloSouzaMoraes
@DaniloSouzaMoraes 7 жыл бұрын
excelent series. Thanks!
@pedrocristovao5157
@pedrocristovao5157 3 жыл бұрын
That's gold
@ashish31416
@ashish31416 4 жыл бұрын
Thank you so much.
@cattivo84
@cattivo84 7 жыл бұрын
Very helpful! thank you!
@luisk6007
@luisk6007 5 жыл бұрын
Thank you very much!
@chandansarkar1123
@chandansarkar1123 6 жыл бұрын
First of all thanks a lot for the great tutorial. I wanted to ask a small question about the boolean array though. In the example you have written b = a > 4 where we are looking for all those elements which returns True for condition > 4. I was trying to create a simple example where I want to check whether the array element is prime or not with a simple function and return boolean. Is there is an easy way to do something like that...
@NyiNyi-mj9yt
@NyiNyi-mj9yt 2 жыл бұрын
thanks you 🙂
@totpotator
@totpotator 7 жыл бұрын
great video thank you !
@sukanyak9975
@sukanyak9975 Ай бұрын
Nice
@gaganutube2k8
@gaganutube2k8 7 жыл бұрын
Awesome...
@learnsanskrit2110
@learnsanskrit2110 5 жыл бұрын
v good tutorial. when u want ppl to focus on last rows of ur screen bring it in center. we have youtube bar and it is not very good user experience ;) - A lazy UX guy
@codebasics
@codebasics 5 жыл бұрын
Thanks for feedback learn Sanskrit. Your point makes sense and I will keep that in mind
@InformativeVideos423
@InformativeVideos423 6 жыл бұрын
Excellent teaching. Superb!!!! Please also do videos on Tensorflow machine learning. I want to save a trained Tensorflow model and then later use it in some another program. How can I do it.
@anilgupta-dy1oj
@anilgupta-dy1oj 5 жыл бұрын
superrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
@kirankumar5818
@kirankumar5818 7 жыл бұрын
nice tutorial
@sumesht.a8528
@sumesht.a8528 7 жыл бұрын
Great teaching. Can you please add videos on matplotlib?
@rishabhgarg9217
@rishabhgarg9217 7 жыл бұрын
thnks for the information
@aniketverma3281
@aniketverma3281 6 жыл бұрын
Super!!
@levendeurdemeches6600
@levendeurdemeches6600 6 жыл бұрын
Thank you again
@deepalibajpai4465
@deepalibajpai4465 5 жыл бұрын
Can you please explain .t transpose function and the use of defining axis (0) or 1 in hstack , vstack etc
@abhijeetkumar3912
@abhijeetkumar3912 2 жыл бұрын
Any tutorial for intermediate ??? please share playlist link.
@sandeepbannu1234
@sandeepbannu1234 7 жыл бұрын
your videos are amazing...... completely!!!!!..... But I wish you had problems for us to practice
@yashgaikwad3669
@yashgaikwad3669 7 жыл бұрын
dude, please make on numpy with images, pixels array and all that stuff
@bhageerathbabuprathi1043
@bhageerathbabuprathi1043 7 жыл бұрын
Very Helpful.. Thank you
@sougatamaity9619
@sougatamaity9619 8 ай бұрын
enjoying
@inspirational_talkings2099
@inspirational_talkings2099 6 жыл бұрын
Appreciate your efforts....Sir.....Are these 4 videos sufficient for numpy ???.......
@inspirational_talkings2099
@inspirational_talkings2099 6 жыл бұрын
Okk sir..... thank you very much sir..... appreciate your efforts....!!
@ravikumarb8053
@ravikumarb8053 6 жыл бұрын
could you suggest any project a beginner for better understanding of numpy, python?
@vamsisaggurthi5528
@vamsisaggurthi5528 6 жыл бұрын
Good
@iamsanketray
@iamsanketray 7 жыл бұрын
is this series completed or are there more videos coming?
@girishjahagirdar4379
@girishjahagirdar4379 7 жыл бұрын
codebasics you should show how to add numbers to an empty bumpy array
@fatinafiqah.y938
@fatinafiqah.y938 7 жыл бұрын
Hi, your video is awesome and i understand every part of it but i got this code about the index thingy and I got the error 'index 4 is out of bounds for axis 1 with size 4' and i really dont know how to fix it. So, i really hope that you can teach on how to fix this cause i need to finish it for my assignment
@fatinafiqah.y938
@fatinafiqah.y938 7 жыл бұрын
codebasics tq for your rply..but when i see your video it say that we can do like that if im not mistaken haha but anyway tq
@fatinafiqah.y938
@fatinafiqah.y938 7 жыл бұрын
Hai could you pls check over my code..and is there any medium for me to give you the code so that you can check it..it is my pleasure if youre able to give me one medium of yours
@horriabayan
@horriabayan 3 ай бұрын
sir, why didn't you prefer doing it on pycharm
@yashtrivedi6830
@yashtrivedi6830 4 жыл бұрын
Hello Sir, I want to grab an index of an array from its value. How can I do it? X1 = np.array([1,0,1]) X = np.array([[1,1,1],[1,1,0],[1,0,1],[1,0,0],[0,1,1],[0,1,0],[0,0,1],[0,0,0]]) I want to grab index of X when X1 == X Can I do it? How can I do it?
@codebasics
@codebasics 4 жыл бұрын
You can use np.where. Check this: thispointer.com/find-the-index-of-a-value-in-numpy-array/ I've not tried this on complex object like array within array but just try it and let me know if it works.
@mounabarhoumi7584
@mounabarhoumi7584 6 жыл бұрын
I divide a 3D image into small patches, these patches, I will process them (for example I will convert each patch into a vector,), my problem is that how can I extract these patches with their positions from the original image, I could only extract the patches and not with the positions (code in python), the code is attached def patch_extract_3D (input, patch_shape, xstep = 1, ystep = 1, zstep = 1): patches_3D = np.lib.stride_tricks.as_strided (input, (int ((input.shape [0] - patch_shape [0] + 1) / xstep), int ((input.shape [1] - patch_shape [1] + 1) / ystep), int ((input.shape [2] - patch_shape [2] + 1) / zstep), patch_shape [0], patch_shape [1], patch_shape [2]), (input.strides [0] * xstep, input.strides [1] * ystep, input.strides [2] * zstep, input.strides [0], input.strides [1], input.strides [2])) patches_3D = patches_3D.reshape (patches_3D.shape [0] * patches_3D.shape [1] * patches_3D.shape [2], patch_shape [0], patch_shape [1], patch_shape [2]) # = Adjoint3D return (patches_3D) input is an 3D matrix and thank you for your help :)
@aasimbaig01
@aasimbaig01 7 жыл бұрын
is ravel and flat function same???
@igniculus_
@igniculus_ 7 жыл бұрын
flat returns a copy ravel returns original (if possible)
@karankrishna8556
@karankrishna8556 7 жыл бұрын
how to insert a value into numpy array from keyboard
@swatibothra1458
@swatibothra1458 6 жыл бұрын
nice videos... :)
@EcExplorer
@EcExplorer 3 жыл бұрын
AttributeError: 'numpy.ndarray' object has no attribute 'falt'
@himanshushekhar26
@himanshushekhar26 6 жыл бұрын
Don't know, why few people pressed unlike button.
@snehashashidhar757
@snehashashidhar757 6 жыл бұрын
Take a bow ... :) :)
@Biocreator
@Biocreator 3 жыл бұрын
:)
numpy tutorial: iterate numpy array using nditer | numpy nditer
8:32
numpy tutorial - introduction | numpy array vs python list
10:35
codebasics
Рет қаралды 327 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
numpy tutorial - basic array operations
13:48
codebasics
Рет қаралды 264 М.
I Solved 100 LeetCode Problems
13:11
Green Code
Рет қаралды 286 М.
Python Pandas: Select, SLICE & FILTER Data rows & columns by Index or Conditionals
24:39
Programming and Math Tutorials
Рет қаралды 34 М.
NumPy Operations - Ultimate Guide to Methods and Functions for Beginners!
28:07
Numpy Array Broadcasting In Python Explained
13:06
mCoding
Рет қаралды 32 М.
Ultimate Guide to NumPy Arrays - VERY DETAILED TUTORIAL for beginners!
24:23
Python: NUMPY | Numerical Python Arrays Tutorial
20:04
Programming and Math Tutorials
Рет қаралды 148 М.