The code as is gives an error: str.strip was being applied to a non-string. This makes sense, since the variables for numerical and categorical columns are being used in the part of the pipeline for categorical and numerical columns, respectively (switched around). I switched these, and now the code works.
The code as is gives an error:
str.strip
was being applied to a non-string. This makes sense, since the variables for numerical and categorical columns are being used in the part of the pipeline for categorical and numerical columns, respectively (switched around). I switched these, and now the code works.