# As an example if we take the 'Medu' feature, which has 5 categories (0 to 4) we can limit this # output to 4 categories by setting a frequency limit of 60 which will group categories 0 and 1 # as they both have less than 60 entries skencoder.set_params(min_frequency = 60) sk_data = skencoder.fit_transform(data.loc[:,['Medu']]) sk_data
Hosted onDeepnote