mlxtend icon indicating copy to clipboard operation
mlxtend copied to clipboard

DataFrame sorting for apriori, fpgrowth, and fpmax functions

Open rasbt opened this issue 3 years ago • 0 comments

It might be useful to sort the dataframes from the apriori, fpgrowth, and fpmax functions to avoid confusion and enable comparisons. This can be done via

.sort_values(by=['support','itemsets'], ascending=False)

The question is whether this should be part of the documentation or the function itself.

See discussion #868 for details

rasbt avatar Dec 09 '21 13:12 rasbt