TST Fixed typo in test_column_transformer
In test_column_transformer_dataframe(), X_df2 was created but never used. X_df was mistakely being used in its place. The PR fixes that typo.
@@ -241,8 +241,8 @@ def test_column_transformer_dataframe():
X_df2 = X_df.copy()
X_df2.columns = [1, 0]
ct = ColumnTransformer([('trans', Trans(), 0)], remainder='drop')
- assert_array_equal(ct.fit_transform(X_df), X_res_first)
- assert_array_equal(ct.fit(X_df).transform(X_df), X_res_first)
+ assert_array_equal(ct.fit_transform(X_df2), X_res_first)
+ assert_array_equal(ct.fit(X_df2).transform(X_df2), X_res_first)
assert len(ct.transformers_) == 2
assert ct.transformers_[-1][0] == 'remainder'
