Python NumPy For Your Grandma - 2.1 NumPy Array Motivation

preview_player
Показать описание
In this video, we motivate the NumPy Array (ndarray) data structure - why it exists and what makes it better / worse than a native Python list.

0:00 - intro / array motivation
2:18 - why arrays are faster than lists
5:10 - recap

--- Code ------------------------

--- Vids & Playlists ----------------------------------

--- Subscribe To Mailing List ----------------------------------

--- Support ------------------------
Рекомендации по теме
Комментарии
Автор

Oddly low view count for the quality of the content you provide! Easy to follow and well explained.

Lorant
Автор

Whenever I'm bored, I watch all the video series from the beginning. I think, it is the time for new series. (:

rhipnox
Автор

Check out this updated course (and more) in written form @

gormanalysis
Автор

Have begun going through your videos. Great quality camera you have.

OTRGeo
Автор

Very nice explanation, thank you! I'm left with a couple question: 1) is this a simplification? 2) if not, does that mean that when working with strings it's best to use lists over numpy arrays?

karim_ghibli
Автор

Nice videos, great work! (and numpy is great too)

Just a little addition:
You can write simplier non-numpy solution instead of for loops:
prices = [100 + i / 100 for i in range(N)]
avg = sum(prices) / len(prices)

peterkulik