Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
Added python code formatting to example
  • Loading branch information
AndrewRPorter authored Oct 15, 2019
1 parent 8dfcec2 commit 5ad49da
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ Usage
Example Usage
-------------

.. code::
.. code-block:: python
>>>from yahoo_historical import Fetcher
>>>data = Fetcher("AAPL", [2007,1,1], [2017,1,1])
>>>print(data.getHistorical())
from yahoo_historical import Fetcher
data = Fetcher("AAPL", [2007,1,1], [2017,1,1])
print(data.getHistorical())
.. code::
Date Open High Low Close Adj Close Volume
0 2007-01-03 12.327143 12.368571 11.700000 10.812462 11.971429 309579900
1 2007-01-04 12.007143 12.278571 11.974286 11.052453 12.237143 211815100
Expand Down

0 comments on commit 5ad49da

Please sign in to comment.