Course Content
Time Series Analysis
Time Series Analysis
Visualization
In the 3rd section, you will get acquainted with the visualization of time series with only one dependent variable and multiple time series with many variables that must be visualized on the same plot.
Time series visualization is one of the most important stages of data processing, allowing the expert to evaluate the big picture and roughly understand the nature of the data (stationarity, seasonality, cyclicality, etc.)
The matplotlib
library is used for visualization. An example of visualizing time series with one variable:
What problems can arise when rendering multiple time series on the same plot?
If the number of time series you want to visualize does not exceed 5, then creating one plot with them can be a good idea, but when there are more than 10, it can become difficult:
In the following chapters, you will learn how to visualize a large number of time series in a way that makes it easier for you, as an expert, to explore the data:
Swipe to show code editor
Use the time series from the co2
dataset and visualize it.
-
Create
Figure
andAxes
objects assigned to thefig, ax
variables. -
Initialize a line plot with dates (
.index
of thedata
) on the x-axis and level of CO2 (the"co2"
column of thedata
) on the y-axis. -
Add the label
"Time"
on the x-axis.
Once you've completed this task, click the button below the code to check your solution.
Thanks for your feedback!
Visualization
In the 3rd section, you will get acquainted with the visualization of time series with only one dependent variable and multiple time series with many variables that must be visualized on the same plot.
Time series visualization is one of the most important stages of data processing, allowing the expert to evaluate the big picture and roughly understand the nature of the data (stationarity, seasonality, cyclicality, etc.)
The matplotlib
library is used for visualization. An example of visualizing time series with one variable:
What problems can arise when rendering multiple time series on the same plot?
If the number of time series you want to visualize does not exceed 5, then creating one plot with them can be a good idea, but when there are more than 10, it can become difficult:
In the following chapters, you will learn how to visualize a large number of time series in a way that makes it easier for you, as an expert, to explore the data:
Swipe to show code editor
Use the time series from the co2
dataset and visualize it.
-
Create
Figure
andAxes
objects assigned to thefig, ax
variables. -
Initialize a line plot with dates (
.index
of thedata
) on the x-axis and level of CO2 (the"co2"
column of thedata
) on the y-axis. -
Add the label
"Time"
on the x-axis.
Once you've completed this task, click the button below the code to check your solution.
Thanks for your feedback!
Visualization
In the 3rd section, you will get acquainted with the visualization of time series with only one dependent variable and multiple time series with many variables that must be visualized on the same plot.
Time series visualization is one of the most important stages of data processing, allowing the expert to evaluate the big picture and roughly understand the nature of the data (stationarity, seasonality, cyclicality, etc.)
The matplotlib
library is used for visualization. An example of visualizing time series with one variable:
What problems can arise when rendering multiple time series on the same plot?
If the number of time series you want to visualize does not exceed 5, then creating one plot with them can be a good idea, but when there are more than 10, it can become difficult:
In the following chapters, you will learn how to visualize a large number of time series in a way that makes it easier for you, as an expert, to explore the data:
Swipe to show code editor
Use the time series from the co2
dataset and visualize it.
-
Create
Figure
andAxes
objects assigned to thefig, ax
variables. -
Initialize a line plot with dates (
.index
of thedata
) on the x-axis and level of CO2 (the"co2"
column of thedata
) on the y-axis. -
Add the label
"Time"
on the x-axis.
Once you've completed this task, click the button below the code to check your solution.
Thanks for your feedback!
In the 3rd section, you will get acquainted with the visualization of time series with only one dependent variable and multiple time series with many variables that must be visualized on the same plot.
Time series visualization is one of the most important stages of data processing, allowing the expert to evaluate the big picture and roughly understand the nature of the data (stationarity, seasonality, cyclicality, etc.)
The matplotlib
library is used for visualization. An example of visualizing time series with one variable:
What problems can arise when rendering multiple time series on the same plot?
If the number of time series you want to visualize does not exceed 5, then creating one plot with them can be a good idea, but when there are more than 10, it can become difficult:
In the following chapters, you will learn how to visualize a large number of time series in a way that makes it easier for you, as an expert, to explore the data:
Swipe to show code editor
Use the time series from the co2
dataset and visualize it.
-
Create
Figure
andAxes
objects assigned to thefig, ax
variables. -
Initialize a line plot with dates (
.index
of thedata
) on the x-axis and level of CO2 (the"co2"
column of thedata
) on the y-axis. -
Add the label
"Time"
on the x-axis.
Once you've completed this task, click the button below the code to check your solution.