@@ -97,7 +97,7 @@ def run_arithmetic_test(self, df, other, assert_func, check_dtype=False,
97
97
def test_integer_arithmetic (self ):
98
98
self .run_arithmetic_test (self .integer , self .integer ,
99
99
assert_frame_equal )
100
- self .run_arithmetic_test (self .integer .icol ( 0 ) , self .integer .icol ( 0 ) ,
100
+ self .run_arithmetic_test (self .integer .iloc [:, 0 ] , self .integer .iloc [:, 0 ] ,
101
101
assert_series_equal , check_dtype = True )
102
102
103
103
@nose .tools .nottest
@@ -182,7 +182,7 @@ def test_integer_arithmetic_frame(self):
182
182
self .run_frame (self .integer , self .integer )
183
183
184
184
def test_integer_arithmetic_series (self ):
185
- self .run_series (self .integer .icol ( 0 ) , self .integer .icol ( 0 ) )
185
+ self .run_series (self .integer .iloc [:, 0 ] , self .integer .iloc [:, 0 ] )
186
186
187
187
@slow
188
188
def test_integer_panel (self ):
@@ -192,7 +192,7 @@ def test_float_arithemtic_frame(self):
192
192
self .run_frame (self .frame2 , self .frame2 )
193
193
194
194
def test_float_arithmetic_series (self ):
195
- self .run_series (self .frame2 .icol ( 0 ) , self .frame2 .icol ( 0 ) )
195
+ self .run_series (self .frame2 .iloc [:, 0 ] , self .frame2 .iloc [:, 0 ] )
196
196
197
197
@slow
198
198
def test_float_panel (self ):
@@ -220,7 +220,7 @@ def test_mixed_panel(self):
220
220
221
221
def test_float_arithemtic (self ):
222
222
self .run_arithmetic_test (self .frame , self .frame , assert_frame_equal )
223
- self .run_arithmetic_test (self .frame .icol ( 0 ) , self .frame .icol ( 0 ) ,
223
+ self .run_arithmetic_test (self .frame .iloc [:, 0 ] , self .frame .iloc [:, 0 ] ,
224
224
assert_series_equal , check_dtype = True )
225
225
226
226
def test_mixed_arithmetic (self ):
@@ -232,7 +232,7 @@ def test_mixed_arithmetic(self):
232
232
def test_integer_with_zeros (self ):
233
233
self .integer *= np .random .randint (0 , 2 , size = np .shape (self .integer ))
234
234
self .run_arithmetic_test (self .integer , self .integer , assert_frame_equal )
235
- self .run_arithmetic_test (self .integer .icol ( 0 ) , self .integer .icol ( 0 ) ,
235
+ self .run_arithmetic_test (self .integer .iloc [:, 0 ] , self .integer .iloc [:, 0 ] ,
236
236
assert_series_equal )
237
237
238
238
def test_invalid (self ):
0 commit comments