I encode my data by using defaultdict, this is my code:
defaultdict
from collections import defaultdict d = defaultdict(LabelEncoder) df_del = df.drop(colum