@@ -48,7 +48,7 @@ def test_np(self):
4848 def test_classification (self ):
4949 for encoder_name in encoders .__all__ :
5050 with self .subTest (encoder_name = encoder_name ):
51- cols = ['unique_str' , 'underscore' , 'extra' , 'none' , 'invariant' , 321 , 'categorical' , 'na_categorical' , 'categorical_int' ]
51+ cols = ['unique_str' , 'underscore' , 'extra' , 'none' , 'invariant' , 'categorical' , 'na_categorical' , 'categorical_int' ]
5252
5353 enc = getattr (encoders , encoder_name )(cols = cols )
5454 enc .fit (X , np_y )
@@ -249,7 +249,7 @@ def test_inverse_transform(self):
249249 # we do not allow None in these data (but "none" column without any missing value is ok)
250250 X = th .create_dataset (n_rows = 100 , has_missing = False )
251251 X_t = th .create_dataset (n_rows = 50 , has_missing = False )
252- cols = ['underscore' , 'none' , 321 , 'categorical' , 'categorical_int' ]
252+ cols = ['underscore' , 'none' , 'categorical' , 'categorical_int' ]
253253
254254 for encoder_name in ['BaseNEncoder' , 'BinaryEncoder' , 'OneHotEncoder' , 'OrdinalEncoder' ]:
255255 with self .subTest (encoder_name = encoder_name ):
@@ -403,7 +403,7 @@ def test_unique_column_is_not_predictive(self):
403403 def test_cols (self ):
404404 # Test cols argument with different data types, which are array-like or scalars
405405 cols_list = ['extra' , 'invariant' ]
406- cols_types = [cols_list , pd .Series (cols_list ), np .array (cols_list ), 'extra' , 321 , set (cols_list ),
406+ cols_types = [cols_list , pd .Series (cols_list ), np .array (cols_list ), 'extra' , set (cols_list ),
407407 ('extra' , 'invariant' ), pd .Categorical (cols_list , categories = cols_list )]
408408
409409 for encoder_name in encoders .__all__ :
@@ -713,7 +713,6 @@ def test_columns(self):
713713 self .assertTrue (result ['float' ].min () < 1 , 'should still be a number and untouched' )
714714 self .assertTrue (result ['float_edge' ].min () < 1 , 'should still be a number and untouched' )
715715 self .assertTrue (result ['unique_int' ].min () < 1 , 'should still be a number and untouched' )
716- self .assertTrue (result [321 ].min () < 1 , 'should still be a number' )
717716
718717 def test_ignored_columns_are_untouched (self ):
719718 # Make sure None values in ignored columns are preserved.
0 commit comments