File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 9
9
import matplotlib .cbook as cbook
10
10
import matplotlib .ticker as ticker
11
11
12
- datafile = cbook .get_sample_data ('aapl.csv' , asobj = False )
12
+ datafile = cbook .get_sample_data ('aapl.csv' , asfileobj = False )
13
13
print 'loading' , datafile
14
14
r = mlab .csv2rec (datafile )
15
15
Original file line number Diff line number Diff line change 2
2
import matplotlib .mlab as mlab
3
3
import matplotlib .cbook as cbook
4
4
5
- datafile = cbook .get_sample_data ('aapl.csv' , asobj = False )
5
+ datafile = cbook .get_sample_data ('aapl.csv' , asfileobj = False )
6
6
print 'loading' , datafile
7
7
r = mlab .csv2rec (datafile )
8
-
9
- r = mlab .csv2rec ('../data/aapl.csv' )
10
8
r .sort ()
11
9
12
10
def daily_return (prices ):
Original file line number Diff line number Diff line change 2
2
import matplotlib .mlab as mlab
3
3
import matplotlib .cbook as cbook
4
4
5
- datafile = cbook .get_sample_data ('aapl.csv' , asobj = False )
5
+ datafile = cbook .get_sample_data ('aapl.csv' , asfileobj = False )
6
6
print 'loading' , datafile
7
7
r = mlab .csv2rec (datafile )
8
8
You can’t perform that action at this time.
0 commit comments