@@ -36,7 +36,7 @@ def setup(self, dtype, index_structure):
3636 indices = {
3737 "unique_monotonic_inc" : Index (range (N ), dtype = dtype ),
3838 "nonunique_monotonic_inc" : Index (
39- list (range (55 )) + [ 54 ] + list (range (55 , N - 1 )), dtype = dtype
39+ [ * list (range (55 )), 54 , * list (range (55 , N - 1 ))] , dtype = dtype
4040 ),
4141 }
4242 self .data = Series (np .random .rand (N ), index = indices [index_structure ])
@@ -85,7 +85,7 @@ def time_loc_slice(self, index, index_structure):
8585
8686class NumericMaskedIndexing :
8787 monotonic_list = list (range (10 ** 6 ))
88- non_monotonic_list = list (range (50 )) + [ 54 , 53 , 52 , 51 ] + list (range (55 , 10 ** 6 - 1 ))
88+ non_monotonic_list = [ * list (range (50 )), 54 , 53 , 52 , 51 , * list (range (55 , 10 ** 6 - 1 ))]
8989
9090 params = [
9191 ("Int64" , "UInt64" , "Float64" ),
@@ -197,7 +197,7 @@ def setup(self, dtype, index_structure):
197197 indices = {
198198 "unique_monotonic_inc" : Index (range (N ), dtype = dtype ),
199199 "nonunique_monotonic_inc" : Index (
200- list (range (55 )) + [ 54 ] + list (range (55 , N - 1 )), dtype = dtype
200+ [ * list (range (55 )), 54 , * list (range (55 , N - 1 ))] , dtype = dtype
201201 ),
202202 }
203203 self .idx_dupe = np .array (range (30 )) * 99
@@ -452,7 +452,7 @@ def setup(self, unique_cols):
452452 if not unique_cols :
453453 # GH#33032 single-row lookups with non-unique columns were
454454 # 15x slower than with unique columns
455- df .columns = ["A" , "A" ] + list (df .columns [2 :])
455+ df .columns = ["A" , "A" , * list (df .columns [2 :])]
456456
457457 self .df = df
458458
0 commit comments