File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -109,15 +109,15 @@ def test_asarray_or_pandas():
109109 columns = ["A" , "B" , "C" ],
110110 index = [10 ])
111111 df_view1 = asarray_or_pandas (df )
112- df_view1 .ix [10 , "A" ] = 101
112+ df_view1 .loc [10 , "A" ] = 101
113113 assert np .array_equal (df_view1 .columns , ["A" , "B" , "C" ])
114114 assert np .array_equal (df_view1 .index , [10 ])
115- assert df .ix [10 , "A" ] == 101
115+ assert df .loc [10 , "A" ] == 101
116116 df_copy = asarray_or_pandas (df , copy = True )
117117 assert np .array_equal (df_copy , df )
118118 assert np .array_equal (df_copy .columns , ["A" , "B" , "C" ])
119119 assert np .array_equal (df_copy .index , [10 ])
120- df_copy .ix [10 , "A" ] = 100
120+ df_copy .loc [10 , "A" ] = 100
121121 assert not np .array_equal (df_copy , df )
122122 df_converted = asarray_or_pandas (df , dtype = float )
123123 assert df_converted ["A" ].dtype == np .dtype (float )
You can’t perform that action at this time.
0 commit comments