rasbt / mlxtend

A library of extension and helper modules for Python's data analysis and machine learning libraries.
https://rasbt.github.io/mlxtend/
Other
4.85k stars 857 forks source link

DataFrame sorting for apriori, fpgrowth, and fpmax functions #871

Open rasbt opened 2 years ago

rasbt commented 2 years ago

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