Hi! Solving Q4 of wrap-up quiz 5, I noticed that I still don’t understand very well how to use Column Transformers.
I found out that it’s not the same to create preprocessor A and preprocessor B (please see the image below) as they both yield different results (A results in 0.74 and B in 0.72).
When displaying the diagrams of the models, transformers appear to be on the same level so I thought which one goes first wouldn’t make any difference as the numerical preprocessor would apply the selector to the whole input and do its thing (same as categorical preprocessor), but now I am wondering if I misunderstood this part and the output of the first pre processor is then processed by the second one (which is not something I would expect considering there is no line on the diagrams directing the output of one processor to the input of the other).
Can someone help me understand this? I checked the docs of ColumnTransformer but couldn’t find any information about hierarchy/order.
Thanks!