Back to Browse

Learn Python NumPy - #2 Indexing

1.7K views
May 13, 2019
5:49

Learn Python NumPy Tutorial series video #2. In this one we'll cover: - Indexing 1D NumPy Arrays - Indexing 2D NumPy Arrays - Slicing multiple variables out from an array #Python #NumPy #Tutorial THANKS SO MUCH FOR ALL THE CONTINUED SUPPORT! (1450+ SUBSCRIBERS!) Thank you all. Your support is really appreciated. Please let me know comments or suggestions for the videos. Your feedback, both positive and negative, makes the future videos better! Until next time! ***************************************************************** Code on GitHub: https://github.com/Derrick-Sherrill/DerrickSherrill.com/blob/master/Numpy_indexing.py Full code from this video: import numpy as np ListA = [0,1,2,3,4,5,6,7,8,9,10] ListB = [11,12,13,14,15,16,17,18,19,20,21] A = np.array(ListA, dtype=np.int32) print(A) # A[start:stop:step] print(A[::1]) ListC = [ListA,ListB] AB = np.array(ListC, dtype=np.int32) print(AB.shape) print(AB[1,2:4:1]) print(A[np.array([0,0,0,0,1,2,3])]) ***************************************************************** 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!

Download

1 formats

Video Formats

360pmp410.4 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Learn Python NumPy - #2 Indexing | NatokHD