Зміст курсу
First Dive into seaborn Visualization
1. Nice to Meet you, seaborn!
First Dive into seaborn Visualization
Lineplot
![](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/c5b4ea8f-8a30-439f-9625-ddf2effbd9ac/seaborn_new/v9.png)
An example of a lineplot:
![](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/c5b4ea8f-8a30-439f-9625-ddf2effbd9ac/lineplot.png)
To initialize a line plot based on the pandas
DataFrame, we need to input at least 3 parameters: x
and y
(columns-coordinates for the plot) and data
(the DataFrame containing the data).
Look at the code below!
Let's solve this problem!
![](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/c5b4ea8f-8a30-439f-9625-ddf2effbd9ac/seaborn_new/v6.png)
Завдання
- Import the
seaborn
withsns
alias. - Import the
matplotlib.pyplot
withplt
alias. - Import the
pandas
withpd
alias. - Read the file.
- Create a lineplot using
'time'
column for the x-value and'level'
column for the y-value. - Show the plot.
Все було зрозуміло?
Секція 2. Розділ 5
Зміст курсу
First Dive into seaborn Visualization
1. Nice to Meet you, seaborn!
First Dive into seaborn Visualization
Lineplot
![](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/c5b4ea8f-8a30-439f-9625-ddf2effbd9ac/seaborn_new/v9.png)
An example of a lineplot:
![](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/c5b4ea8f-8a30-439f-9625-ddf2effbd9ac/lineplot.png)
To initialize a line plot based on the pandas
DataFrame, we need to input at least 3 parameters: x
and y
(columns-coordinates for the plot) and data
(the DataFrame containing the data).
Look at the code below!
Let's solve this problem!
![](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/c5b4ea8f-8a30-439f-9625-ddf2effbd9ac/seaborn_new/v6.png)
Завдання
- Import the
seaborn
withsns
alias. - Import the
matplotlib.pyplot
withplt
alias. - Import the
pandas
withpd
alias. - Read the file.
- Create a lineplot using
'time'
column for the x-value and'level'
column for the y-value. - Show the plot.
Все було зрозуміло?
Секція 2. Розділ 5