Anything wrong with my code:
from sklearn.compose import make_column_selector,ColumnTransformer
from sklearn.preprocessing import OneHotEncoder
from sklearn.pipeline import Pipeline
categorical_columns=make_column_selector(dtype_include=object)
numerical_columns=make_column_selector(dtype_include=int)
data_cat=data[categorical_columns]
data_num=data[numerical_columns]
ct=ColumnTransformer([("cat",OneHotEncoder(handle_unknown="ignore"),data_cat),
("num",StandardScaler(),data_num)],
remainder="passthrough")
model=Pipeline(steps=[("ct",ct),("lr",LogisticRegression())])
cv_better=cross_validate(model,ct,target,cv=10,return_estimator=True)
Getting singleton error. ColumnTransformer transformation also not happening to the data