Skip to content

Commit ea7344e

Browse files
committed
Finance: change volume to float; close 3108059
svn path=/branches/v1_0_maint/; revision=8884
1 parent 2f86ae7 commit ea7344e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/finance.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
('close', np.float),
3939
('high', np.float),
4040
('low', np.float),
41-
('volume', np.int),
41+
('volume', np.float),
4242
('aclose', np.float)])
4343

4444

@@ -57,7 +57,7 @@ def parse_yahoo_historical(fh, adjusted=True, asobject=False):
5757
by the adjusted close, regardless of whether you choose adjusted
5858
= True|False.
5959
60-
60+
6161
*asobject*
6262
If False (default for compatibility with earlier versions)
6363
return a list of tuples containing
@@ -101,7 +101,7 @@ def parse_yahoo_historical(fh, adjusted=True, asobject=False):
101101
dt = datetime.date(*[int(val) for val in datestr.split('-')])
102102
dnum = date2num(dt)
103103
open, high, low, close = [float(val) for val in vals[1:5]]
104-
volume = int(vals[5])
104+
volume = float(vals[5])
105105
aclose = float(vals[6])
106106

107107
results.append((dt, dt.year, dt.month, dt.day,

0 commit comments

Comments
 (0)