Book Image

Learning Pandas

By : Michael Heydt
Book Image

Learning Pandas

By: Michael Heydt

Overview of this book

Table of Contents (19 chapters)
Learning pandas
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Installing and importing NumPy


Since NumPy is a prerequisite for pandas, and you have already installed pandas, NumPy is ready to be used. All that is required to do to use NumPy is to import the library and so all that is required for the examples in this chapter and for most of this book is the following import command:

In [1]:
   # this allows us to access numpy using the
   # np. prefix
   import numpy as np

This makes the top-level functions of NumPy available in the np namespace. This is a common practice when using NumPy, and this book will follow this convention for accessing NumPy functionality.