From the course: Advanced Python: Practical Database Examples

Unlock the full course today

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

Analyze data with Matplotlib

Analyze data with Matplotlib

- [Lecturer] Now that we're a little more familiar with the data, let's try creating some visualizations. We'll leverage the Matplotlib module. By using both Pandas and Matplotlib, we can make a histogram of the values in a given column. Let's try plotting a histogram with the values and the quantity column and see how many products are bought in a given order. We'll select the data frame quantity, and then use hist. It looks like most orders are small, containing under 10 items. We can also make bar graphs. Let's graph the prod category column and see what the top product categories are for orders. We'll use value counts and plot a bar graph. We see e-books again, but training videos, blueprints drone kits, and robot kits are also popular. This is only an introduction to Pandas and Matplotlib, and there are so many more methods you can run on your data. There are also several other libraries you can use to learn more…

Contents