“RelationRecord object of apyori module” apriori algorithm python
问题 Excuse me for my english, I'm trying to recognize properties that come up frequently in a set of data to deduce a categorization using the apyori package of python. i'm practicing on a dataframe of 20772 transactions and the largest transaction is 543 items. DataFrame I converted this DataFrame into a list : liste = df.astype(str).values.tolist() I got this list list I used the apriori function of the library apyori to generate the association rules: from apyori import apriori rules = apriori