7. Numpy arrays#

Another way to store collection of items in Python is by using numpy arrays. In this chapter, we will study them in detail and see their advantages over using other data types that store collections of values.

Chapter Summary

  • Creating numpy arrays manually and using built-in functions

  • Attributes of numpy arrays

  • Shallow vs deep copying in numpy arrays

  • Modify shape and elements of arrays

  • Arithmetic operations on arrays

  • Slicing