Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lineplot | More and More Plots
First Dive into seaborn Visualization
course content

Зміст курсу

First Dive into seaborn Visualization

First Dive into seaborn Visualization

1. Nice to Meet you, seaborn!
2. More and More Plots
3. Plot Customization

Lineplot

An example of a lineplot:

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!

12345678910111213
# Importing libraries needed import seaborn as sns import matplotlib.pyplot as plt import pandas as pd # Reading the file df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/c5b4ea8f-8a30-439f-9625-ddf2effbd9ac/example4.csv') # Creating the lineplot sns.lineplot(x = 'x', y = 'y', data = df) # Showing the plot plt.show()
copy

Let's solve this problem!

Завдання

  1. Import the seaborn with sns alias.
  2. Import the matplotlib.pyplot with plt alias.
  3. Import the pandas withpd alias.
  4. Read the file.
  5. Create a lineplot using 'time' column for the x-value and 'level' column for the y-value.
  6. Show the plot.

Завдання

  1. Import the seaborn with sns alias.
  2. Import the matplotlib.pyplot with plt alias.
  3. Import the pandas withpd alias.
  4. Read the file.
  5. Create a lineplot using 'time' column for the x-value and 'level' column for the y-value.
  6. Show the plot.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 2. Розділ 5
toggle bottom row

Lineplot

An example of a lineplot:

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!

12345678910111213
# Importing libraries needed import seaborn as sns import matplotlib.pyplot as plt import pandas as pd # Reading the file df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/c5b4ea8f-8a30-439f-9625-ddf2effbd9ac/example4.csv') # Creating the lineplot sns.lineplot(x = 'x', y = 'y', data = df) # Showing the plot plt.show()
copy

Let's solve this problem!

Завдання

  1. Import the seaborn with sns alias.
  2. Import the matplotlib.pyplot with plt alias.
  3. Import the pandas withpd alias.
  4. Read the file.
  5. Create a lineplot using 'time' column for the x-value and 'level' column for the y-value.
  6. Show the plot.

Завдання

  1. Import the seaborn with sns alias.
  2. Import the matplotlib.pyplot with plt alias.
  3. Import the pandas withpd alias.
  4. Read the file.
  5. Create a lineplot using 'time' column for the x-value and 'level' column for the y-value.
  6. Show the plot.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 2. Розділ 5
toggle bottom row

Lineplot

An example of a lineplot:

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!

12345678910111213
# Importing libraries needed import seaborn as sns import matplotlib.pyplot as plt import pandas as pd # Reading the file df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/c5b4ea8f-8a30-439f-9625-ddf2effbd9ac/example4.csv') # Creating the lineplot sns.lineplot(x = 'x', y = 'y', data = df) # Showing the plot plt.show()
copy

Let's solve this problem!

Завдання

  1. Import the seaborn with sns alias.
  2. Import the matplotlib.pyplot with plt alias.
  3. Import the pandas withpd alias.
  4. Read the file.
  5. Create a lineplot using 'time' column for the x-value and 'level' column for the y-value.
  6. Show the plot.

Завдання

  1. Import the seaborn with sns alias.
  2. Import the matplotlib.pyplot with plt alias.
  3. Import the pandas withpd alias.
  4. Read the file.
  5. Create a lineplot using 'time' column for the x-value and 'level' column for the y-value.
  6. Show the plot.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

An example of a lineplot:

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!

12345678910111213
# Importing libraries needed import seaborn as sns import matplotlib.pyplot as plt import pandas as pd # Reading the file df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/c5b4ea8f-8a30-439f-9625-ddf2effbd9ac/example4.csv') # Creating the lineplot sns.lineplot(x = 'x', y = 'y', data = df) # Showing the plot plt.show()
copy

Let's solve this problem!

Завдання

  1. Import the seaborn with sns alias.
  2. Import the matplotlib.pyplot with plt alias.
  3. Import the pandas withpd alias.
  4. Read the file.
  5. Create a lineplot using 'time' column for the x-value and 'level' column for the y-value.
  6. Show the plot.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Секція 2. Розділ 5
Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
We're sorry to hear that something went wrong. What happened?
some-alt