@@ -11,7 +11,6 @@ def _create_sp_series():
11
11
12
12
# nan-based
13
13
arr = np .arange (15 , dtype = np .float64 )
14
- index = np .arange (15 )
15
14
arr [7 :12 ] = nan
16
15
arr [- 1 :] = nan
17
16
@@ -28,11 +27,10 @@ def _create_sp_tsseries():
28
27
29
28
# nan-based
30
29
arr = np .arange (15 , dtype = np .float64 )
31
- index = np .arange (15 )
32
30
arr [7 :12 ] = nan
33
31
arr [- 1 :] = nan
34
32
35
- date_index = bdate_range ('1/1/2011' , periods = len (index ))
33
+ date_index = bdate_range ('1/1/2011' , periods = len (arr ))
36
34
bseries = SparseTimeSeries (arr , index = date_index , kind = 'block' )
37
35
bseries .name = 'btsseries'
38
36
return bseries
@@ -99,7 +97,7 @@ def create_data():
99
97
columns = ['A' , 'B' , 'A' ]),
100
98
cat_onecol = DataFrame (dict (A = Categorical (['foo' , 'bar' ]))),
101
99
cat_and_float = DataFrame (dict (A = Categorical (['foo' , 'bar' , 'baz' ]),
102
- B = np .arange (3 ))),
100
+ B = np .arange (3 ). astype ( np . int64 ) )),
103
101
)
104
102
panel = dict (float = Panel (dict (ItemA = frame ['float' ], ItemB = frame ['float' ]+ 1 )),
105
103
dup = Panel (np .arange (30 ).reshape (3 , 5 , 2 ).astype (np .float64 ),
0 commit comments