NumPy Broadcasting Practice - Learn NumPy Series

preview_player
Показать описание
This video is a piece of a full learn NumPy series, start here:

In this one we'll get some more practice looking at numpy array broadcasting. Adapted from a Udemy course over to a Youtube playlist

Join The Socials -- Picking Shoutouts Across YouTube, Insta, FB, and Twitter!

Thanks so much for the continued support! 5150+ subscribers at the time of writing. Never ceases to amaze me. Thank you everyone for supporting me.

*****************************************************************
Full code from the video:

import numpy as np

print(array_a + array_b)

print(array_a+array_c)

Packages (& Versions) used in this video:
Python 3.7
NumPy 1.17

*****************************************************************
Code from this tutorial and all my others can be found on my GitHub:

Check out my website:

If you liked the video - please hit the like button. It means more than you know. Thanks for watching and thank you for all your support!!

Always looking for suggestions on what video to make next -- leave me a comment with your project! Happy Coding!
Рекомендации по теме
Комментарии
Автор

You're a great teacher!
Thank you so much! :)

dikshasabharwal
Автор

import numpy as np

array_a = np.ones((5, 5))
print(array_a)

array_b = np.array([[1], [2], [3], [4], [5]])

print(array_a * array_b)

nickarrigo
Автор

arr_a = np.ones((5, 5))
print(arr_a)

arr_b = [1, 2, 3, 4, 5]

print(arr_a*arr_b)

rufaidakashif