File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -25,5 +25,5 @@ def _read_lines(self, out):
25
25
buffer = out .read ()
26
26
m = re .search ('// ' , buffer )
27
27
result = json .loads (buffer [m .start () + len ('// ' ):])
28
- return pandas .DataFrame (map ( lambda x : float (x ['l' ]), result ) ,
29
- index = map ( lambda x : x ['t' ], result ) )
28
+ return pandas .DataFrame ([ float (x ['l' ]) for x in result ] ,
29
+ index = [ x ['t' ] for x in result ] )
Original file line number Diff line number Diff line change 1
1
import os
2
2
from datetime import datetime
3
+ import sys
3
4
4
5
import numpy as np
5
6
from pandas import DataFrame , Timestamp
13
14
14
15
15
16
class TestYahooOptions (tm .TestCase ):
17
+
16
18
@classmethod
17
19
def setUpClass (cls ):
18
20
super (TestYahooOptions , cls ).setUpClass ()
@@ -155,6 +157,9 @@ def test_month_year(self):
155
157
raise nose .SkipTest (e )
156
158
157
159
self .assertTrue (len (data ) > 1 )
160
+
161
+ if sys .version_info [0 ] == 2 and sys .version_info [1 ] == 6 :
162
+ raise nose .SkipTest ('skip dtype check in python 2.6' )
158
163
self .assertEqual (data .index .levels [0 ].dtype , 'float64' ) # GH168
159
164
160
165
def test_empty_table (self ):
You can’t perform that action at this time.
0 commit comments