Each type of visualization represents the data differently.
Figure 3.36: Board showing the most common types of data visualization
Types of Data Visualization
Data Visualization
Scatter plot showing positive correlation between years of experience and age of employee
Bar chart showing the annual min, max and average temperatures recorded in Abha
Line chart showing the annual min, max and average temperatures recorded in Abha
Line Chart
Bar Chart
Scatter Plot
Table 3.12: Methods of Matplotlib library
Matplotlib Library
Categorical data are discrete variables. They can have a certain number of values, for example the number of students in each region in SA.
Histogram showing the distribution of the years of experience among employees
Pie chart showing preferred means of transport as a percentage
Histogram
Pie Chart
Υou are going to select and use only the first five rows of your dataset, to create a clearer bar chart.
The next step is to create the dataset that you are going to use.
Bar Chart
Your bar chart is ready!
The code to create your diagram.
Grouped bar chart
Now let's say you want to plot the number of students, teachers and administrators on the same bar chart. This is called a grouped bar chart and you need to place the bars correctly depending
Matplotlib library has a large collection of settings to edit the style of a chart or graph. You can visit the online documentation of the library for details on each specific setting at http
Now you will create a figure with more than one pie chart.
Identify the main difference between the scatter plot and the other charts. Give an example of the use of a scatter plot.
Compare the main characteristics of line and bar charts. Find two examples of datasets and select the most appropriate chart for each one.
Discuss the importance of data visualization as a stage in exploratory data analysis. Illustrate its importance with two examples.
You want to compare the number of tourists visiting KSA from 3 parts of the world, Europe, Asia, and the Middle East, for the months of October to January.
You want to figure out how many tourists are visiting KSA per month for one region in the dataset.
Name some Python libraries that can be used for applying data visualization techniques. What must you do to start using them in Jupyter Notebook?
You want to find out the month with the most visitors and then figure out the percentage of visitors to each region for this month.