From Python List to ndarray
Why arrays beat lists for numbers.
Meet the ndarray
NumPy's core gift is the ndarray, a grid of numbers all of one type. It is the workhorse behind almost every data tool you'll use. 🚀
Lists Are Flexible but Slow
A Python list can hold anything: numbers, strings, even other lists. That freedom is handy, but for crunching numbers it makes the list slow.
All lessons in this course
- From Python List to ndarray
- Shape, Size, and dtype
- Vectorized Math Without Loops
- Indexing and Slicing Arrays