NumPy Array Math Practice - Learn NumPy Series


NumPy Array Math Practice - Learn NumPy Series

*

Full Code From This Example:


YouTube Description:

This video is a piece of a full learn NumPy Series, Start here: https://www.youtube.com/watch?v=9fcTq8PDWWA&list=PLc_Ps3DdrcTuf3e-BBpDv8r9jbOB5Wdv- In this one we look at a few more methods and get some practice setting the axis keyword argument. Join The Socials -- Picking Shoutouts Across YouTube, Insta, FB, and Twitter! FB - https://www.facebook.com/CodeWithDerrick/ Insta - https://www.instagram.com/codewithderrick/ Twitter - https://twitter.com/codewithderrick LinkedIn - https://www.linkedin.com/in/derricksherrill/ GitHub - https://github.com/Derrick-Sherrill Thanks so much for the continued support! We're well past 5,000 subscribers now. That rocks. Thanks so much for supporting me! ***************************************************************** Full code from the video: import numpy as np array_a = np.array([[1,2,3],[4,5,6],[7,8,9]]) array_b = np.array([[2,2,2],[3,4,5],[6,7,8]]) print(array_a) print(array_b) print(array_a.sum(axis=0)) print(array_a.ptp()) print(array_a.min(axis=1)) print(array_a.max(axis=1)) print(array_a.mean(axis=1)) # power print(np.power(array_a, array_b)) array_c = np.array([[1,1,1],[2,2,2],[3,3,3]]) print( array_a + array_b + array_c) https://github.com/Derrick-Sherrill/NumPy-Udemy-Scripts/blob/master/Topic%205%20-%20Array%20Math/array-math-project.py 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: 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 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!

Enjoy this content? Consider Subbing to the Youtube channel





Derrick Sherrill

By: Derrick Sherrill

Thanks for visiting my page! I'm working hard to make the best content I can for you. I love watching people learn and teaching others. Happy Coding!

Become a Patreon!