In [1]:
!pip install pandas matplotlib pandas_datareader


Requirement already satisfied: pandas in /srv/conda/envs/notebook/lib/python3.7/site-packages (0.25.1)
Requirement already satisfied: matplotlib in /srv/conda/envs/notebook/lib/python3.7/site-packages (3.1.1)
Requirement already satisfied: pandas_datareader in /srv/conda/envs/notebook/lib/python3.7/site-packages (0.7.4)
Requirement already satisfied: numpy>=1.13.3 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from pandas) (1.17.1)
Requirement already satisfied: python-dateutil>=2.6.1 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from pandas) (2.8.0)
Requirement already satisfied: pytz>=2017.2 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from pandas) (2019.2)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from matplotlib) (2.4.2)
Requirement already satisfied: kiwisolver>=1.0.1 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from matplotlib) (1.1.0)
Requirement already satisfied: cycler>=0.10 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from matplotlib) (0.10.0)
Requirement already satisfied: lxml in /srv/conda/envs/notebook/lib/python3.7/site-packages (from pandas_datareader) (4.4.1)
Requirement already satisfied: wrapt in /srv/conda/envs/notebook/lib/python3.7/site-packages (from pandas_datareader) (1.11.2)
Requirement already satisfied: requests>=2.3.0 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from pandas_datareader) (2.22.0)
Requirement already satisfied: six>=1.5 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from python-dateutil>=2.6.1->pandas) (1.12.0)
Requirement already satisfied: setuptools in /srv/conda/envs/notebook/lib/python3.7/site-packages (from kiwisolver>=1.0.1->matplotlib) (41.0.1)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from requests>=2.3.0->pandas_datareader) (1.25.3)
Requirement already satisfied: idna<2.9,>=2.5 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from requests>=2.3.0->pandas_datareader) (2.8)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from requests>=2.3.0->pandas_datareader) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from requests>=2.3.0->pandas_datareader) (2019.6.16)

In [2]:
import pandas_datareader as data
%matplotlib inline

In [3]:
aapl = data.DataReader('AAPL', 'yahoo', '2018-01-01', '2019-08-31')

In [4]:
aapl.head()


Out[4]:
High Low Open Close Volume Adj Close
Date
2018-01-02 172.300003 169.259995 170.160004 172.259995 25555900.0 167.701889
2018-01-03 174.550003 171.960007 172.529999 172.229996 29517900.0 167.672668
2018-01-04 173.470001 172.080002 172.539993 173.029999 22434600.0 168.451508
2018-01-05 175.369995 173.050003 173.440002 175.000000 23660000.0 170.369385
2018-01-08 175.610001 173.929993 174.350006 174.350006 20567800.0 169.736588

In [5]:
aapl['Close'].plot(figsize=(12,9))


Out[5]:
<matplotlib.axes._subplots.AxesSubplot at 0x7f54b6a1d278>

In [8]:
!git status


On branch master
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

	modified:   Binder_Nitebook.ipynb

Untracked files:
  (use "git add <file>..." to include in what will be committed)

	.bash_history
	.bash_logout
	.bashrc
	.config/
	.gitconfig
	.ipython/
	.local/
	.profile

no changes added to commit (use "git add" and/or "git commit -a")

In [7]:
!git commit -m 'new notebook'


[master 683d118] new notebook
 1 file changed, 255 insertions(+)
 create mode 100644 Binder_Nitebook.ipynb

In [ ]: