import FinanceDataReader as fdr
df1 = fdr.DataReader("005930", '2018-01-02', '2018-10-30')
df2 = fdr.DataReader("069500", '2018-01-02', '2018-10-30')
df = pd.concat([df1['Close'], df2['Close']], axis=1)
df.columns = ['삼성전자', 'KODEX 200']
df.head()
<AxesSubplot:xlabel='Date'>
c:\Git\python-data\venv\lib\site-packages\IPython\core\pylabtools.py:151: UserWarning: Glyph 49340 (\N{HANGUL SYLLABLE SAM}) missing from current font.
fig.canvas.print_figure(bytes_io, **kw)
c:\Git\python-data\venv\lib\site-packages\IPython\core\pylabtools.py:151: UserWarning: Glyph 49457 (\N{HANGUL SYLLABLE SEONG}) missing from current font.
fig.canvas.print_figure(bytes_io, **kw)
c:\Git\python-data\venv\lib\site-packages\IPython\core\pylabtools.py:151: UserWarning: Glyph 51204 (\N{HANGUL SYLLABLE JEON}) missing from current font.
fig.canvas.print_figure(bytes_io, **kw)
c:\Git\python-data\venv\lib\site-packages\IPython\core\pylabtools.py:151: UserWarning: Glyph 51088 (\N{HANGUL SYLLABLE JA}) missing from current font.
fig.canvas.print_figure(bytes_io, **kw)
array([[<AxesSubplot:title={'center':'삼성전자'}>,
<AxesSubplot:title={'center':'KODEX 200'}>]], dtype=object)
<AxesSubplot:>
c:\Git\python-data\venv\lib\site-packages\IPython\core\pylabtools.py:151: UserWarning: Glyph 49340 (\N{HANGUL SYLLABLE SAM}) missing from current font.
fig.canvas.print_figure(bytes_io, **kw)
c:\Git\python-data\venv\lib\site-packages\IPython\core\pylabtools.py:151: UserWarning: Glyph 49457 (\N{HANGUL SYLLABLE SEONG}) missing from current font.
fig.canvas.print_figure(bytes_io, **kw)
c:\Git\python-data\venv\lib\site-packages\IPython\core\pylabtools.py:151: UserWarning: Glyph 51204 (\N{HANGUL SYLLABLE JEON}) missing from current font.
fig.canvas.print_figure(bytes_io, **kw)
c:\Git\python-data\venv\lib\site-packages\IPython\core\pylabtools.py:151: UserWarning: Glyph 51088 (\N{HANGUL SYLLABLE JA}) missing from current font.
fig.canvas.print_figure(bytes_io, **kw)
c:\Git\python-data\venv\lib\site-packages\seaborn\distributions.py:2619: FutureWarning: `distplot` is a deprecated function and will be removed in a future version. Please adapt your code to use either `displot` (a figure-level function with similar flexibility) or `histplot` (an axes-level function for histograms).
warnings.warn(msg, FutureWarning)
c:\Git\python-data\venv\lib\site-packages\seaborn\axisgrid.py:88: UserWarning: Glyph 49340 (\N{HANGUL SYLLABLE SAM}) missing from current font.
self._figure.tight_layout(*args, **kwargs)
c:\Git\python-data\venv\lib\site-packages\seaborn\axisgrid.py:88: UserWarning: Glyph 49457 (\N{HANGUL SYLLABLE SEONG}) missing from current font.
self._figure.tight_layout(*args, **kwargs)
c:\Git\python-data\venv\lib\site-packages\seaborn\axisgrid.py:88: UserWarning: Glyph 51204 (\N{HANGUL SYLLABLE JEON}) missing from current font.
self._figure.tight_layout(*args, **kwargs)
c:\Git\python-data\venv\lib\site-packages\seaborn\axisgrid.py:88: UserWarning: Glyph 51088 (\N{HANGUL SYLLABLE JA}) missing from current font.
self._figure.tight_layout(*args, **kwargs)
c:\Git\python-data\venv\lib\site-packages\seaborn\axisgrid.py:88: UserWarning: Glyph 49340 (\N{HANGUL SYLLABLE SAM}) missing from current font.
self._figure.tight_layout(*args, **kwargs)
c:\Git\python-data\venv\lib\site-packages\seaborn\axisgrid.py:88: UserWarning: Glyph 49457 (\N{HANGUL SYLLABLE SEONG}) missing from current font.
self._figure.tight_layout(*args, **kwargs)
c:\Git\python-data\venv\lib\site-packages\seaborn\axisgrid.py:88: UserWarning: Glyph 51204 (\N{HANGUL SYLLABLE JEON}) missing from current font.
self._figure.tight_layout(*args, **kwargs)
c:\Git\python-data\venv\lib\site-packages\seaborn\axisgrid.py:88: UserWarning: Glyph 51088 (\N{HANGUL SYLLABLE JA}) missing from current font.
self._figure.tight_layout(*args, **kwargs)
c:\Git\python-data\venv\lib\site-packages\IPython\core\pylabtools.py:151: UserWarning: Glyph 49340 (\N{HANGUL SYLLABLE SAM}) missing from current font.
fig.canvas.print_figure(bytes_io, **kw)
c:\Git\python-data\venv\lib\site-packages\IPython\core\pylabtools.py:151: UserWarning: Glyph 49457 (\N{HANGUL SYLLABLE SEONG}) missing from current font.
fig.canvas.print_figure(bytes_io, **kw)
c:\Git\python-data\venv\lib\site-packages\IPython\core\pylabtools.py:151: UserWarning: Glyph 51204 (\N{HANGUL SYLLABLE JEON}) missing from current font.
fig.canvas.print_figure(bytes_io, **kw)
c:\Git\python-data\venv\lib\site-packages\IPython\core\pylabtools.py:151: UserWarning: Glyph 51088 (\N{HANGUL SYLLABLE JA}) missing from current font.
fig.canvas.print_figure(bytes_io, **kw)
삼성전자 51020
KODEX 200 30317
Name: 2018-01-02 00:00:00, dtype: int64
<AxesSubplot:xlabel='Date'>
c:\Git\python-data\venv\lib\site-packages\IPython\core\pylabtools.py:151: UserWarning: Glyph 49340 (\N{HANGUL SYLLABLE SAM}) missing from current font.
fig.canvas.print_figure(bytes_io, **kw)
c:\Git\python-data\venv\lib\site-packages\IPython\core\pylabtools.py:151: UserWarning: Glyph 49457 (\N{HANGUL SYLLABLE SEONG}) missing from current font.
fig.canvas.print_figure(bytes_io, **kw)
c:\Git\python-data\venv\lib\site-packages\IPython\core\pylabtools.py:151: UserWarning: Glyph 51204 (\N{HANGUL SYLLABLE JEON}) missing from current font.
fig.canvas.print_figure(bytes_io, **kw)
c:\Git\python-data\venv\lib\site-packages\IPython\core\pylabtools.py:151: UserWarning: Glyph 51088 (\N{HANGUL SYLLABLE JA}) missing from current font.
fig.canvas.print_figure(bytes_io, **kw)