Matplotlibによる基本的なグラフ

Python中級

Hugo Bowne-Anderson

Data Scientist at DataCamp

Matplotlibによる基本的なグラフ

  • 可視化

bar chart icon

  • データ構造

code icon

  • 制御構造

  • ケーススタディ

Python中級

データ可視化

  • データ分析において非常に重要

    • データを探索する
    • インサイトを報告する

Python中級

1 出典: GapMinder, Wealth and Health of Nations
Python中級

1 出典: GapMinder, Wealth and Health of Nations
Python中級

1 出典: GapMinder, Wealth and Health of Nations
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()

Python中級

- Matplotlib

Python中級

- Matplotlib

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()
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()

Python中級

練習しましょう!

Python中級

Preparing Video For Download...