@@ -148,7 +148,7 @@ def series_values_from_argsort_result(series, argsorted):
148148def restore_series_sort_values (series , my_result_index , ascending ):
149149 value_dict = {}
150150 nan_list = []
151- data = np .copy (series .data )
151+ data = np .copy (series .values )
152152 index = np .copy (series .index )
153153 for value in range (len (data )):
154154 # if np.isnan(data[value]):
@@ -996,7 +996,7 @@ def test_impl(A, i):
996996 S = pd .Series (np .arange (n ), name = 'A' )
997997 # SDC and pandas results differ due to type limitation requirements:
998998 # SDC returns Series of one element, whereas pandas returns scalar, hence we align result
999- result = hpat_func (S , i ).data [0 ]
999+ result = hpat_func (S , i ).values [0 ]
10001000 result_ref = test_impl (S , i )
10011001 self .assertEqual (result , result_ref )
10021002
@@ -1096,7 +1096,7 @@ def test_impl(S, key):
10961096 indices = [[2 , 3 , 5 ], [2 , 3 , 5 ], [2 , 3 , 5 ]]
10971097 for key , index in zip (keys , indices ):
10981098 S = pd .Series ([11 , 22 , 33 ], index , name = 'A' )
1099- np .testing .assert_array_equal (jit_impl (S , key ).data , np .array (test_impl (S , key )))
1099+ np .testing .assert_array_equal (jit_impl (S , key ).values , np .array (test_impl (S , key )))
11001100
11011101 def test_series_getitem_duplicate_index (self ):
11021102 def test_impl (A ):
@@ -1162,7 +1162,7 @@ def test_impl(S, key):
11621162 indices = [[2 , 3 , 5 ], [2 , 2 , 2 ], [2 , 4 , 15 ]]
11631163 for key , data , index in zip (keys , all_data , indices ):
11641164 S = pd .Series (data , index , name = 'A' )
1165- np .testing .assert_array_equal (jit_impl (S , key ).data , np .array (test_impl (S , key )))
1165+ np .testing .assert_array_equal (jit_impl (S , key ).values , np .array (test_impl (S , key )))
11661166
11671167 def test_series_loc_str (self ):
11681168 def test_impl (A ):
@@ -4048,7 +4048,7 @@ def test_impl(series, ascending, kind):
40484048 if kind == 'mergesort' :
40494049 pd .testing .assert_series_equal (ref_result , jit_result )
40504050 else :
4051- np .testing .assert_array_equal (ref_result .data , jit_result .data )
4051+ np .testing .assert_array_equal (ref_result .values , jit_result .values )
40524052 self .assertEqual (ref , jit )
40534053
40544054 @skip_parallel
0 commit comments