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]

Comment List

  • codebasics
    November 17, 2020
  • codebasics
    November 17, 2020

    Why there are no jupyter notebook links in the any video of numpy playlist? @codebasics

  • codebasics
    November 17, 2020

    really helpful

  • codebasics
    November 17, 2020

    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.

  • codebasics
    November 17, 2020

    this is wonderfull

  • codebasics
    November 17, 2020

    can we add two arrays with different shapes ?

  • codebasics
    November 17, 2020

    great

  • codebasics
    November 17, 2020

    same as always this course is very useful as well !!! Thanks BRO…

  • codebasics
    November 17, 2020

    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 🙁

  • codebasics
    November 17, 2020

    Thx. It was a great tutorial. I made a help module out of it so I would remember it all. 😃

  • codebasics
    November 17, 2020

    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??

  • codebasics
    November 17, 2020

    very helpful tutorials , thanks

  • codebasics
    November 17, 2020

    thank u💙

  • codebasics
    November 17, 2020

    range in python does not create a list. It creates an iterator.

  • codebasics
    November 17, 2020

    sir how to extract rows and columns

  • codebasics
    November 17, 2020

    nice and useful video. thank you

  • codebasics
    November 17, 2020

    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

  • codebasics
    November 17, 2020

    thanks man. it was great

  • codebasics
    November 17, 2020

    Good

  • codebasics
    November 17, 2020

    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 ?

  • codebasics
    November 17, 2020

    Can you pl explain what is a difference between flatten and ravel ?

  • codebasics
    November 17, 2020

    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

  • codebasics
    November 17, 2020

    a=np.zeros((2,3,4)) what is the third number 4 do the array ?

  • codebasics
    November 17, 2020

    Thank you again sir!

  • codebasics
    November 17, 2020

    how can we segment an image(or a matrix) into sub-images (in square form), and thanks for helping me

  • codebasics
    November 17, 2020

    Excellent

  • codebasics
    November 17, 2020

    thanks a lot :)…really clear explanations

  • codebasics
    November 17, 2020

    Thank you a lot!

  • codebasics
    November 17, 2020

    What is the significance between data types like ‘uint8’ and ‘uint32’ other than the amount of memory they take up?

  • codebasics
    November 17, 2020

    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

  • codebasics
    November 17, 2020

    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

  • codebasics
    November 17, 2020

    Love you man #noHomo. <3

  • codebasics
    November 17, 2020

    Thanks. Very helpuful

  • codebasics
    November 17, 2020

    greate demo. thanks

  • codebasics
    November 17, 2020

    great vid man thanks!

  • codebasics
    November 17, 2020

    Great lecture

  • codebasics
    November 17, 2020

    I think for better understanding we have to study numpy with pandas.
    Just because there are a lot of things that are the same.

  • codebasics
    November 17, 2020

    Thank You !! In 10:52 , You said sqrt is not a function. it's a generic function. what does that mean ?

    can you elaborate ?

  • codebasics
    November 17, 2020

    Excellent video.Lots of love.

  • codebasics
    November 17, 2020

    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.

  • codebasics
    November 17, 2020

    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 ?

  • codebasics
    November 17, 2020

    Can numpy be used on FASTA files to create arrays?

  • codebasics
    November 17, 2020

    bro u vids are dank af

Write a comment