Hi nanfuka,
It’s very hard to tell since you do not show completly your code in the screen captures you put in your threads.
But I think I can guess that you did a mistake in the definition of your preprocessor
since i do not see a ‘(’ before ‘cat_processor’ in your picture.
The correct preprocessor is something like:
preprocessor = ColumnTransformer([
('cat-preprocessor', categorical_preprocessor, categorical_columns), ('num_preprocessor', numerical_preprocessor, numerical_columns )])
but if I’m guessing correctly you used:
preprocessor = ColumnTransformer([
'cat-preprocessor', categorical_preprocessor, categorical_columns, 'num_preprocessor', numerical_preprocessor, numerical_columns ])
that s why you have that message after executing the line 141.
P.S. :
-
to present code use MarkDown :
```
copy paste your code here
```
or copy paste your code, select it and use Ctrl + E or the icon </>
-
since this topic has been solved and your problem does not look to be completly related, it could have been great if you started a new topic to talk about your problem