#### Overview of this book

Python is one of the most common and popular languages preferred by leading data analysts and statisticians for working with massive datasets and complex data visualizations. Become a Python Data Analyst introduces Python’s most essential tools and libraries necessary to work with the data analysis process, right from preparing data to performing simple statistical analyses and creating meaningful data visualizations. In this book, we will cover Python libraries such as NumPy, pandas, matplotlib, seaborn, SciPy, and scikit-learn, and apply them in practical data analysis and statistics examples. As you make your way through the chapters, you will learn to efficiently use the Jupyter Notebook to operate and manipulate data using NumPy and the pandas library. In the concluding chapters, you will gain experience in building simple predictive models and carrying out statistical computation and analysis using rich Python tools and proven data analysis techniques. By the end of this book, you will have hands-on experience performing data analysis with Python.
Preface
Free Chapter
The Anaconda Distribution and Jupyter Notebook
Vectorizing Operations with NumPy
Pandas - Everyone's Favorite Data Analysis Library
Visualization and Exploratory Data Analysis
Statistical Computing with Python
Introduction to Predictive Analytics Models
Other Books You May Enjoy

# Introduction to pyplot

Now, we will start using matplotlib with the pyplot interface. The topic that we will cover is the pyplot interface and some examples

In our Jupyter Notebook, the first thing that we notice is that we have a command that includes matplotlib inline with the % sign as shown in the following code block:

%matplotlib inline

This is basically the way we tell the Jupyter Notebook that we want to see the plots in the notebook. When we don't use this command and execute this line, we see that the plot will appear in a different window.

Pyplot is basically a collection of command style functions that make matplotlib work similar to MATLAB. The idea is that we have a collection of functions and each function makes some changes to a figure, and this figure is considered to be the current figure. So every function does something to a figure; for instance, we can...