0PricingLogin
Data Science Academy · Lesson

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

  1. From Python List to ndarray
  2. Shape, Size, and dtype
  3. Vectorized Math Without Loops
  4. Indexing and Slicing Arrays
← Back to Data Science Academy