Matplotlib으로 기본적인 그래프 그리기

중급 Python

Hugo Bowne-Anderson

Data Scientist at DataCamp

Matplotlib으로 기본적인 그래프 그리기

  • 시각화

막대그래프 아이콘

  • 데이터 구조

코드 아이콘

  • 제어 구조

  • 사례 연구

중급 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...