What this Data Visualization with Python webinar covers
This recorded session provides an introduction to data visualization using Python, focusing on core libraries such as Matplotlib and Pandas. The presentation outlines the data science flow, covering data gathering, cleaning, and exploration, while contrasting traditional manual analysis with modern real-time data science.
Demonstrations include working with built-in datasets to create scatter plots and line charts, configuring axes, labels, and titles, and saving plots. The session concludes with a walkthrough of a COVID-19 dataset fetched via a rest API, demonstrating how to build multi-panel subplots and generate visual trend reports for different regions.
Who it is for: Professionals and students interested in exploring data science and Python-based visualization techniques.
What you will take away
- The data science flow spans gathering, cleaning, exploring, and modeling data to provide factual answers and predictions.
- Pandas acts as the primary tool for data movement and reshaping through data frames.
- Matplotlib functions by superimposing multiple graph objects onto a single figure canvas.
- Scatter plots effectively illustrate the relationship between vehicle weight and miles per gallon.
- Seaborn allows for additional classification categories using the hue parameter on plots.
- Data collected from a rest API can be processed into a Python dictionary and converted into a Pandas data frame for plotting.
The session in detail
Data science flow and real-time analysis
Data science begins with a business or policy question, followed by gathering, cleaning, and exploring data. While traditional analysis was manual and slow, modern data science focuses on real-time insights. Exploration handles factual analysis of existing data, whereas modeling uses algorithms for predictions when input parameters change.
Python libraries for data analysis
Python offers domain-specific modules for various applications, ranging from database connections to excel file processing. For data analysis, four modules stand out: Pandas, NumPy, Matplotlib, and Seaborn. Pandas serves as the primary data mover and reshaper, while NumPy handles multidimensional array processing.
Matplotlib architecture and figure creation
Matplotlib operates using a figure canvas where multiple individual graph objects, such as lines, ticks, and labels, are superimposed. Plots can be organized into subplots using a grid structure to display several charts simultaneously, allowing for the visual comparison of different metrics.
Demonstration using automobile data
Working within a Jupyter notebook environment, built-in datasets such as miles per gallon are loaded into Pandas data frames. Scatter plots are generated to examine the relationship between vehicle weight and mileage, demonstrating how weight increases correspond to lower mileage figures.
Enhancing plots with Seaborn and saving outputs
Seaborn provides additional layers for visualization, such as adding hue parameters to classify data points by origin. Plots can be customized with specific x-axis labels, y-axis labels, and titles before being exported and saved as image files on the hard disk.
Covid-19 dataset walkthrough
A practical demonstration uses real-world COVID-19 data retrieved via a rest API. The JSON data is converted into a Python dictionary and structured into a Pandas data frame. Multi-panel subplots display bar charts, pie charts, and line plots showing active cases, recoveries, and deaths over time for different regions.
Data Visualization with Python: questions this webinar answers
What Python libraries are used for data visualization in this session?
Pandas, NumPy, Matplotlib, and Seaborn are the four important modules used for data analysis and visualization in Python. Pandas acts as the core data mover and reshaper, while Matplotlib and Seaborn handle the graphical plotting and final depiction of the data.
How is a scatter plot created using Matplotlib?
A scatter plot is created using the plt.scatter function by passing the x-axis and y-axis parameters, such as vehicle weight versus miles per gallon. Additional components like x-labels, y-labels, and a plot title can be applied using functions such as plt.xlabel and plt.title.
What is the basic architecture of a Matplotlib plot?
Matplotlib plotting is organized around an object called a figure, which functions as the drawing canvas. Multiple individual graph objects, such as line plots, scatter plots, tick values, axis labels, and titles, are superimposed onto this single figure canvas.
How can COVID-19 data be fetched and visualized in Python?
COVID-19 data can be requested from a rest API website using Python's request module and converted into a Python dictionary. This data is then structured into a Pandas data frame and processed through a plotting engine to generate multi-panel subplots and visual trend reports for different regions.
What is the data science flow covered in Python data visualization?
The data science flow starts with a business or policy question, followed by gathering data, cleaning up missing or incorrect values, and exploring the data. After exploratory data analysis, modeling can be applied for prediction purposes, and the results are presented through visualization so policy makers can make decisions.
Related reading
- What Is Pandas? Python's Data Analysis Library ExplainedKnowledge Bank guide
- Python for Data AnalysisLive, trainer-led course
- All free webinar recordingsWebinars


