numpy tutorial – basic array operations
[ad_1]
This tutorial covers various operations around array object in numpy such as array properties (ndim, shape, itemsize, size etc.), math operations (min, max, sqrt, std etc.) arange, reshape etc. Please give thumbs up/subscribe/comment if you like this tutorial.
Topics that are covered in this Python Video:
0:00 Overview
0:29 create one dimensional array
0:45 create two dimensional array
1:11 ndim property
1:35 itemsize property
1:57 dtype property
2:05 change data type of element
2:52 size property
3:12 shape property
4:22 zeros() function
4:45 once() function
5:00 range() function
5:26 arange() function
6:28 linspace() function
7:31 reshape() function
8:21 ravel() function
9:21 min() function
9:26 max() function
9:31 sum() function
10:36 sqrt() function
11:20 std() function
12:39 operations in array
13:09 matrix products dot()
Next Video:
numpy tutorial – slicing/stacking arrays, indexing with boolean arrays: youtube.com/watch?v=_d_Ka-ks2a0&list=PLeo1K3hjS3usILfyvQlvUBokXkHPSve6S&index=41
Website: http://codebasicshub.com/
Facebook: https://www.facebook.com/codebasicshub
Twitter: https://twitter.com/codebasicshub
Source
[ad_2]
Step by step roadmap to learn data science in 6 months: https://www.youtube.com/watch?v=H4YcqULY1-Q
Learn data science with pandas: https://www.youtube.com/watch?v=CmorAWRsCAw&list=PLeo1K3hjS3uuASpe-1LjfG5f14Bnozjwy
Machine learning tutorials with exercises:
https://www.youtube.com/watch?v=gmvvaobm7eQ&list=PLeo1K3hjS3uvCeTYTeyfe0-rN5r8zn9rw
Why there are no jupyter notebook links in the any video of numpy playlist? @codebasics
really helpful
Thank you – exactly what I was looking for! I'm making a tile-based roguelike, and everything is stored in a 2D Python array (lists) but apparently Numpy arrays are processed much faster, so I will be using this to convert my array, and it sounds like I can manipulate the data a lot easier with Numpy too. So thanks again.
this is wonderfull
can we add two arrays with different shapes ?
great
same as always this course is very useful as well !!! Thanks BRO…
I feel very frustrated. All videos on youtube explain very well this library, BUT all videos create those arrays by hand, and that NEVER happens… So, how do I add a value to an array from a variable? How to I create a array from a loop? for, while… So, never watched a video with a real or basic practical example 🙁
Thx. It was a great tutorial. I made a help module out of it so I would remember it all. 😃
If you need to create the Python lists to initialize the numpy arrays, i.e if you have to do np.array( [1,2,3] ) then you have to make the python list in memory first before passing it to numpy array method, if I'm not mistaken. How does then numpy manage to be faster then??
very helpful tutorials , thanks
thank u💙
range in python does not create a list. It creates an iterator.
sir how to extract rows and columns
nice and useful video. thank you
ahaha i like your language style "You Obviously Don't Remember. But If You Open Your Calculator You'll Find The Square Root It's Gonna Be This!". haha i'll tell that to my elementary teacher one day. Best Quote dank af
thanks man. it was great
Good
Hi Can you pl explain what is a difference between flatten and ravel ? Secondly a=np.array([1,2,3,4])
t=np.array([[1,2,3,4],[5,6,7,8],[9,10,11,12]])
print(a)
print(t)
a.itemsize
a.ndim When it runs in jupyter notebook in single cell it shows output of a.ndim only. Can you pl explain me why ?
Can you pl explain what is a difference between flatten and ravel ?
Hi, I have a query, i am having following code a=np.array([1,2,3,4])
t=np.array([[1,2,3,4],[5,6,7,8],[9,10,11,12]])
print(a)
print(t)
a.itemsize
a.ndim When it runs in jupyter notebook it shows output of a.ndim only. Can you pl explain me why ? and Thanks for great simple to understand videos
a=np.zeros((2,3,4)) what is the third number 4 do the array ?
Thank you again sir!
how can we segment an image(or a matrix) into sub-images (in square form), and thanks for helping me
Excellent
thanks a lot :)…really clear explanations
Thank you a lot!
What is the significance between data types like ‘uint8’ and ‘uint32’ other than the amount of memory they take up?
Pythons range(x) does not create a list/array cause it is a generator and cannot be compared with numpys arange() method which creates an array/list
i hope you know by now that Numpy is spoken "num pie" and not "num pi y", it´s hard to take your course seriously because of this misspelling. carpe diem
Love you man #noHomo. <3
Thanks. Very helpuful
greate demo. thanks
great vid man thanks!
Great lecture
I think for better understanding we have to study numpy with pandas.
Just because there are a lot of things that are the same.
Thank You !! In 10:52 , You said sqrt is not a function. it's a generic function. what does that mean ?
can you elaborate ?
Excellent video.Lots of love.
watch at speed:1.5x. The video is really cool at that speed. Thanks codebasics for the wonderful video. I was searching for one of these types of videos for quite a while.
How can I import two CSV files, called a.CSV and b.CSV, each includes a 64 by 64 matrice and then do the calculations on them? for example a-b ?
Can numpy be used on FASTA files to create arrays?
bro u vids are dank af