■ Series 클래스의 plot 메소드를 사용해 LINE 차트를 그리는 방법을 보여준다.
▶ main.py
1 2 3 4 5 6 7 8 9 10 11 |
import matplotlib.pyplot as pp import numpy as np import pandas as pd series = pd.Series(np.random.randn(10).cumsum(), index = np.arange(0, 100, 10)) series.plot() pp.show() |
▶ requirements.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
cycler==0.11.0 fonttools==4.34.4 kiwisolver==1.4.4 matplotlib==3.5.3 numpy==1.23.1 packaging==21.3 pandas==1.4.3 Pillow==9.2.0 pip==22.0.4 pyparsing==3.0.9 python-dateutil==2.8.2 pytz==2022.2.1 setuptools==58.1.0 six==1.16.0 |