Matplotlib for Python Developers
上QQ阅读APP看书,第一时间看更新

Importing the pyplot

To create a pandas DataFrame from objects such as lists and ndarrays, you may call:

import pandas as pd

To start creating Matplotlib plots, we first import the plotting API pyplot by entering this command:

import matplotlib.pyplot as plt

This will start your plotting routine.

In Jupyter Notebook, you need to import modules once you begin a notebook session after starting the kernel.