Базові графіки в Matplotlib

Intermediate Python

Hugo Bowne-Anderson

Data Scientist at DataCamp

Базові графіки в Matplotlib

  • Візуалізація

іконка стовпчикової діаграми

  • Структура даних

іконка коду

  • Керувальні структури

  • Кейс-стаді

Intermediate Python

Візуалізація даних

  • Дуже важлива в аналізі даних

    • Досліджуйте дані
    • Показуйте інсайти

Intermediate Python

1 Джерело: GapMinder, Wealth and Health of Nations
Intermediate Python

1 Джерело: GapMinder, Wealth and Health of Nations
Intermediate Python

1 Джерело: GapMinder, Wealth and Health of Nations
Intermediate Python

Matplotlib

import matplotlib.pyplot as plt

year = [1950, 1970, 1990, 2010]
pop = [2.519, 3.692, 5.263, 6.972]
plt.plot(year, pop)
plt.show()

Intermediate Python

Matplotlib

Intermediate Python

Matplotlib

Intermediate Python

Точкова діаграма

import matplotlib.pyplot as plt
year = [1950, 1970, 1990, 2010]
pop = [2.519, 3.692, 5.263, 6.972]
plt.plot(year, pop)
plt.show()
Intermediate Python

Точкова діаграма

import matplotlib.pyplot as plt
year = [1950, 1970, 1990, 2010]
pop = [2.519, 3.692, 5.263, 6.972]
plt.scatter(year, pop)
plt.show()

Intermediate Python

Давайте потренуємось!

Intermediate Python

Preparing Video For Download...