▶ Watch Entire Numpy Playlist ✅ Subscribe To My RUclips Channel: bit.ly/3Q7frEH bit.ly/2IGzvOR ▶ See More At: ✅ Join My Facebook Group: Codemy.com bit.ly/2GFmOBz ▶ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt! Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN ▶ Get The Code: bit.ly/3mp2qJ3
6:58 IMO these are not the two dimensions, but two entries in a dimension. The two dimensions are given by the brackets. Either way, good video, thanks.
Just curious, is there a way to slice one portion of a dimension and another different one of the other in a single line of code? I mean, if you want to get items (index) 0, 1, 2 from the 1st dimension and 2, 3, 4 from the 2nd one. I've tried a couple of things but it doesn't seem to be working.
To extract specific items from both dimensions of a 2D NumPy array, you can use advanced indexing, which allows you to specify the exact indices you want to select. If you want to get items at indices 0, 1, and 2 from the first dimension (rows) and indices 2, 3, and 4 from the second dimension (columns).you can write- rows = [0, 1, 2] cols = [2, 3, 4] subarray = a[np.ix_(rows, cols)] print(subarray)
First time I've heard one-ith and five-ith instead of 1st and 5th 🤣🤣 edit: It's to make it obvious that the array starts at zero... not sure I can handle it.
▶ Watch Entire Numpy Playlist ✅ Subscribe To My RUclips Channel:
bit.ly/3Q7frEH bit.ly/2IGzvOR
▶ See More At: ✅ Join My Facebook Group:
Codemy.com bit.ly/2GFmOBz
▶ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt!
Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN
▶ Get The Code:
bit.ly/3mp2qJ3
Happy to have found your channel. Thanks for sharing this!
Welcome!
this is literally one of the best courses (arguably the best one) for numpy
Glad you're enjoying it!
good job mate!! regards from spain
Thanks!
6:58 IMO these are not the two dimensions, but two entries in a dimension. The two dimensions are given by the brackets.
Either way, good video, thanks.
Thank you!
Good course. Simple but comprehensive. By the way, I'm not native English speaker. I REALLY want to know what you say at the beginning of vedio.
great teaching sir , but i have to say , the way you start the video with that hand gesture XD
lol
100k+ subs???? Amazing 🤩
Yeah, a few months ago
dude you are amazing but only suggestion i wish you used jupyter notebook instead of sublime so that we could get the outcome on the go.
Mast
Sir is it fine if i code in virtual studio code ? And this much numpy is enough for data science?
Sure, you can use vscode if you like. But why?
@@Codemycombecause it’s better than sublime 😂
Thank you so much!
Very welcome!
i really like this
Glad to hear it!
Just curious, is there a way to slice one portion of a dimension and another different one of the other in a single line of code? I mean, if you want to get items (index) 0, 1, 2 from the 1st dimension and 2, 3, 4 from the 2nd one. I've tried a couple of things but it doesn't seem to be working.
To extract specific items from both dimensions of a 2D NumPy array, you can use advanced indexing, which allows you to specify the exact indices you want to select. If you want to get items at indices 0, 1, and 2 from the first dimension (rows) and indices 2, 3, and 4 from the second dimension (columns).you can write-
rows = [0, 1, 2]
cols = [2, 3, 4]
subarray = a[np.ix_(rows, cols)]
print(subarray)
at my place the error "np is not defined" appears, how do I solve it??
define np as the video does
import numpy as np
@@jiniapatra1294 yep
Everything is amazing but why sublime text?
Because it's simple and it's the most used coding text editor in the world. Why not?
@@Codemycomnot according to the stack overflow developer survey it’s not
i see u going for the Walter White look
print("you are the best")
output:???
Ha thanks!
💪🏻💪🏻
:-)
heisenberg
lol
Background them use classic
I don't know what those words mean
(y) 👍
👍
First time I've heard one-ith and five-ith instead of 1st and 5th 🤣🤣
edit: It's to make it obvious that the array starts at zero... not sure I can handle it.
Good job man, but what in gods name is “fiveth”, its “fifth”. 😕
It's helpful to understand that arrays start at zero...the zero'ith....followed by, followed by..etc. Don't be a grammar nazi over it.