HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

Complete Python NumPy Tutorial (Creating Arrays, Indexing, Math, Statistics, Reshaping)

857,888 views October 29, 2019 58:41

Watch on YouTube
ChannelKeith Galli

Chapters

Description from the creator

Check out stratascratch.com/?via=keith to practice your Python Pandas data science skills!

This video overviews the NumPy library. It provides background information on how NumPy works and how it compares to Python's Built-in lists. This video goes through how to write code with NumPy. It starts with the basics of creating arrays and then gets into more advanced stuff. A full video timeline can be found in the comments.

Link to code used in video: github.com/KeithGalli/NumPy

Feel free to watch at 1.5x to learn more quickly!

If you enjoyed this video, please consider subscribing :).

Let me know your feedback and what I should make a video on next.

----------------------------
Videos of mine that use NumPy
- Creating Connect 4 Game: youtu.be/UYgyRArKDEs
- Plotting (with some use of NumPy): youtu.be/DAQNHzOcO5A
- Generating Mock Data: youtu.be/VJBY2eVtf7o

----------------------------
Links with more information!

NumPy vs Lists:
jakevdp.github.io/blog/2014/05/09/why-python-is…

Indexing:
docs.scipy.org/doc/numpy-1.13.0/user/basics.ind…

Array Creation Routines:
docs.scipy.org/doc/numpy/reference/routines.arr…

Math Routines Docs:
docs.scipy.org/doc/numpy/reference/routines.mat…

Linear Algebra Docs:
docs.scipy.org/doc/numpy/reference/routines.lin…

----------------------------
Video Timeline!
0:00 - Introduction
1:15 - What is NumPy
1:35 - NumPy vs Lists (speed, functionality)
9:17 - Applications of NumPy
11:08 - The Basics (creating arrays, shape, size, data type)
16:08 - Accessing/Changing Specific Elements, Rows, Columns, etc (slicing)
23:14 - Initializing Different Arrays (1s, 0s, full, random, etc...)
31:34 - Problem #1 (How do you initialize this array?)
33:42 - Be careful when copying variables!
35:45 - Basic Mathematics (arithmetic, trigonometry, etc.)
38:20 - Linear Algebra
42:19 - Statistics
43:57 - Reorganizing Arrays (reshape, vstack, hstack)
47:29 - Load data in from a file
50:20 - Advanced Indexing and Boolean Masking
55:59 - Problem #2 (How do you index these values?)

---------------------
If you are curious to learn how I make my tutorials, check out this video: youtu.be/LEO4igyXbLs

Join the Python Army to get access to perks!
YouTube - youtube.com/channel/UCq6XkhO5SZ66N04IcPbqNcw/jo…
Patreon - patreon.com/keithgalli

*I use affiliate links on the products that I recommend. I may earn a purchase commission or a referral bonus from the usage of these links.

About this tutorial

Keith Galli published this 58:41 video tutorial on October 29, 2019. It has been watched 857,888 times on YouTube.

Category
Education
Duration
58:41
Published
October 29, 2019
Views
857,888
Likes
25,118

Share

This tutorial in other languages