From the course: Machine Learning with Python: Foundations

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

How to visualize data in Python

How to visualize data in Python

- [Instructor] Like the popular saying, "a picture is worth a thousand words." Visualizations are sometimes more useful than summary statistics in helping us understand our data. One of the most popular visualization packages in Python is a matplotlib package, which provides a host of powerful functions and methods that allow us to produce publication quality visualizations. The plot method of a Pandas dataframe provides an abstraction of the matplotlib functions. To ensure that the plots we create in this tutorial appear right after our code, we have to run the following command. Next, let's import and preview the data we will use for our illustrations. The first type of plot we create is a relationship visualization. These types of visualizations are used to illustrate the correlation between two or more continuous variables. Scatter plots are one of the most commonly used relationship visualizations. They show how one…

Contents