Here's a video from a Udemy course about numpy arrays geared towards beginners. In this one we'll talk about why you might want to use a numpy array, homogenous data typing, and how dimensions work.
#Python #NumPy #Arrays
Download numpy using pip:
pip3 install numpy
https://pypi.org/project/numpy/
Join The Socials -- Picking Shoutouts Across YouTube, Insta, FB, and Twitter!
FB - / codewithderrick
Insta - / codewithderrick
Twitter - / codewithderrick
LinkedIn - / derricksherrill
GitHub - https://github.com/Derrick-Sherrill
Thanks so much for all the support! We're approaching 5k subscribers. THAT'S AWESOME! You all make me want to keep creating better and better content. Thanks for all the encouraging words.
*****************************************************************
Full code from the video:
import numpy as np
Creation of a sample array
array_a = np.array([1,2,3,4,5])
print(array_a)
We can add elements of multiple data types to python lists, not arrays
print([1,2,3,4,5, 'derrick'])
print(array_a.shape) # View the shape of an array by the shape attribute
array_b = np.array([[1,2,3,4,5],[1,2,3,4,5]]) # Multidimensional arrays
print(array_b.shape)
https://github.com/Derrick-Sherrill/N...
Packages (& Versions) used in this video:
Numpy 1.17
Python 3.7
*****************************************************************
Code from this tutorial and all my others can be found on my GitHub:
https://github.com/Derrick-Sherrill/D...
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!