I have written the following code for encoding categorical features of the dataframe( named 't') -
from sklearn.compose import ColumnTransformer
categorical_columns = ['warehouse_ID', 'Product_Type','month', 'is_weekend', 'is_warehouse_closed']
transformer = ColumnTransformer(transformers= [('le',preprocessing.LabelEncoder() ,categorical_columns)],remainder= 'passthrough')
Train_transform = transformer.fit_transform(t)
But it is showing this error -
TypeError: fit_transform() takes 2 positional arguments but 3 were given