Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 58d741f

Browse files
committed
minor formatting changes to doc-strings
tweaked import
1 parent 007754c commit 58d741f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/matplotlib/finance.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from matplotlib.patches import Rectangle
3030
from matplotlib.transforms import Affine2D
3131

32-
from cbook import mplDeprecation
32+
from matplotlb.cbook import mplDeprecation
3333

3434
cachedir = get_cachedir()
3535
# cachedir will be None if there is no writable directory.
@@ -122,6 +122,7 @@ def parse_yahoo_historical_ochl(fh, adjusted=True, asobject=False):
122122

123123
def parse_yahoo_historical_ohlc(fh, adjusted=True, asobject=False):
124124
"""Parse the historical data in file handle fh from yahoo finance.
125+
125126
Parameters
126127
----------
127128
@@ -347,7 +348,8 @@ def fetch_historical_yahoo(ticker, date1, date2, cachename=None,
347348
Fetch historical data for ticker between date1 and date2. date1 and
348349
date2 are date or datetime instances, or (year, month, day) sequences.
349350
350-
Ex:
351+
Examples
352+
351353
fh = fetch_historical_yahoo('^GSPC', (2000, 1, 1), (2001, 12, 31))
352354
353355
Parameters

0 commit comments

Comments
 (0)