@@ -214,9 +214,9 @@ def test_safe_indexing_2d_container_axis_1(array_type, indices_type, indices):
214214 if indices_type == "slice" and isinstance (indices [1 ], int ):
215215 indices_converted [1 ] += 1
216216
217- columns_name = ["col_0" , "col_1" , "col_2" ]
217+ column_names = ["col_0" , "col_1" , "col_2" ]
218218 array = _convert_container (
219- [[1 , 2 , 3 ], [4 , 5 , 6 ], [7 , 8 , 9 ]], array_type , columns_name
219+ [[1 , 2 , 3 ], [4 , 5 , 6 ], [7 , 8 , 9 ]], array_type , column_names
220220 )
221221 indices_converted = _convert_container (indices_converted , indices_type )
222222
@@ -278,9 +278,9 @@ def test_safe_indexing_1d_container_mask(array_type, indices_type):
278278 [(0 , [[4 , 5 , 6 ], [7 , 8 , 9 ]]), (1 , [[2 , 3 ], [5 , 6 ], [8 , 9 ]])],
279279)
280280def test_safe_indexing_2d_mask (array_type , indices_type , axis , expected_subset ):
281- columns_name = ["col_0" , "col_1" , "col_2" ]
281+ column_names = ["col_0" , "col_1" , "col_2" ]
282282 array = _convert_container (
283- [[1 , 2 , 3 ], [4 , 5 , 6 ], [7 , 8 , 9 ]], array_type , columns_name
283+ [[1 , 2 , 3 ], [4 , 5 , 6 ], [7 , 8 , 9 ]], array_type , column_names
284284 )
285285 indices = [False , True , True ]
286286 indices = _convert_container (indices , indices_type )
@@ -332,9 +332,9 @@ def test_safe_indexing_1d_scalar(array_type):
332332)
333333@pytest .mark .parametrize ("indices" , [2 , "col_2" ])
334334def test_safe_indexing_2d_scalar_axis_1 (array_type , expected_output_type , indices ):
335- columns_name = ["col_0" , "col_1" , "col_2" ]
335+ column_names = ["col_0" , "col_1" , "col_2" ]
336336 array = _convert_container (
337- [[1 , 2 , 3 ], [4 , 5 , 6 ], [7 , 8 , 9 ]], array_type , columns_name
337+ [[1 , 2 , 3 ], [4 , 5 , 6 ], [7 , 8 , 9 ]], array_type , column_names
338338 )
339339
340340 if isinstance (indices , str ) and array_type in ("array" , "sparse" ):
@@ -513,7 +513,7 @@ def test_get_column_indices_pandas_nonunique_columns_error(key):
513513def test_get_column_indices_dataframes (constructor_name ):
514514 """Check _get_column_indices for edge cases with 2d input X."""
515515 df = _convert_container (
516- [[1 , 2 , 3 ], [4 , 5 , 6 ]], constructor_name , columns_name = ["a" , "b" , "c" ]
516+ [[1 , 2 , 3 ], [4 , 5 , 6 ]], constructor_name , column_names = ["a" , "b" , "c" ]
517517 )
518518
519519 key_results = [
0 commit comments