Learn Python NumPy #3 – Array Math Operations




[ad_1]

In this video we’ll cover NumPy Math operations that we can do on Arrays.
The full list of universal functions that I mentioned in this video can be found here:
https://docs.scipy.org/doc/numpy/reference/ufuncs.html#available-ufuncs

In this video we’ll cover:
-NumPy Array Functions
– How to add numpy Arrays
– How to subtract, divide, multiply numpy arrays,
– Take square roots of NumPy arrays
– Linear operations on NumPy arrays
-Talk about vectorization and the alternative python for loops
#Python #NumPy #Tutorial

THANKS SO MUCH FOR ALL THE SUPPORT! (1630+ SUBSCRIBERS) You guys are incredible. Your support means more than you know. Thank you.

If you have comments or suggestions about this video or other videos, please let me know – Your comments make the future ones better. Thank you for your feedback, both positive and negative!

Happy Coding – Until Next Time!

*****************************************************************
GitHub link for code from this video:
https://github.com/Derrick-Sherrill/DerrickSherrill.com/blob/master/npmath.py

Code from this video:
import numpy as np

ListA = [1,2,3,4]
ListB = [-1,2,4,6]

A = np.array(ListA, dtype=np.int32)
B = np.array(ListB, dtype=np.int32)

print(A)

ListA2 = []
for element in ListA:
element = element +1
ListA2.append(element)

print(ListA2)

print(A+1)
print(np.add(A,B))
print(A+B)
print(A-B)
print(A*B)
print(A/B)
print(np.sqrt(A))

Endscreen Image from this video:
https://pixabay.com/it/photos/animali-canguri-australia-natura-1869759/
(Thanks to Pexels from Pixabay)

*****************************************************************
Code from this tutorial and all my others can be found on my GitHub:
https://github.com/Derrick-Sherrill/DerrickSherrill.com

Check out my website:
https://www.derricksherrill.com/

If you liked the video – please hit the like button. It means more than you know. Thanks for watching!!

Useful Links
—————————————————————————————————————–
Python Download:
https://www.python.org/downloads/
(Remember Python 3 is the future!)

I use Atom Text Editor for all my tutorials
Atom Text Editor:
https://atom.io/

Packages I often use in Python tutorials:
-Pandas
https://pandas.pydata.org/pandas-docs/stable/
-Numpy
https://www.numpy.org/
-xlrd
https://xlrd.readthedocs.io/en/latest/
-TensorFlow
https://www.tensorflow.org/api_docs/python
-Matplotlib
https://matplotlib.org/
-Django Framework
https://www.djangoproject.com/
-Beautiful Soup
https://www.crummy.com/software/BeautifulSoup/
(Install through Terminal $pip3 install ….)

Other Useful Services sometimes featured:
-Amazon Web Services (AWS)
https://aws.amazon.com/
-Microsoft Azure
https://azure.microsoft.com/en-us/
-Google Cloud
https://cloud.google.com/
-Juypter Notebooks
https://jupyter.org/

Always looking for suggestions on what video to make next — leave me a comment with your project! Happy Coding!

Source


[ad_2]

Comment List

  • Derrick Sherrill
    December 9, 2020

    Thanks dude
    I've been searching this in many videos, but you are the only one !!!!!!!!

  • Derrick Sherrill
    December 9, 2020

    Very useful & straight to the point ๐Ÿ‘๐Ÿ‘๐Ÿ‘

  • Derrick Sherrill
    December 9, 2020

    Keep uploading more Python concepts. Online platforms need people like you. Congrats Derrick. If there is any way to support you would be glad to do so. Have you got a Patreon page?.

Write a comment