@@ -636,14 +636,14 @@ def test_apply_builtin_label_encoder(self, mocker):
636636 [
637637 StructField ("col_0" , IntegerType (), True ),
638638 StructField ("col_2" , BooleanType (), True ),
639- StructField ("label_encoder_col_1 " , IntegerType (), True ),
639+ StructField ("label_encoder_col_1_ " , IntegerType (), True ),
640640 ]
641641 )
642642 expected_df = pd .DataFrame (
643643 data = {
644644 "col_0" : [1 , 2 , 3 ],
645645 "col_2" : [True , False , True ],
646- "label_encoder_col_1 " : [0 , 1 , 0 ],
646+ "label_encoder_col_1_ " : [0 , 1 , 0 ],
647647 }
648648 )
649649 expected_spark_df = spark_engine ._spark_session .createDataFrame (
@@ -666,7 +666,7 @@ def test_apply_builtin_label_encoder(self, mocker):
666666 extended_statistics = {"unique_values" : ["test_1" , "test_2" ]}
667667 transformation_functions [0 ].transformation_statistics = [
668668 FeatureDescriptiveStatistics (
669- feature_name = "col_0 " , extended_statistics = extended_statistics
669+ feature_name = "col_1 " , extended_statistics = extended_statistics
670670 )
671671 ]
672672
0 commit comments