Importing pandas

Importing pandas into your application is simple. The following code is a fairly standard convention that is used:

In [1]:
   # bring in NumPy and pandas
   import numpy as np
   import pandas as pd

Importing of both NumPy and pandas is fairly common, with their objects mapped into the np and pd namespaces, respectively. It is also common to import several classes from pandas into the global namespace, but for the purpose of this text, we will explicitly reference all objects through the pd namespace prefix.

pandas also provides several options that can be set to control the formatting of output. The notebooks in this book will use the following code or a slight variant to control the representation of the rendering, as well as setting ...

Get Learning pandas 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.