7. Array-Oriented Programming with NumPy

Objectives

In this chapter you’ll:

Image Learn how arrays differ from lists.

Image Use the numpy module’s high-performance ndarrays.

Image Compare list and ndarray performance with the IPython %timeit magic.

Image Use ndarrays to store and retrieve data efficiently.

Create and initialize ndarrays.

Refer to individual ndarray

Get Python for Programmers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.