Why are the contents of the association rule table not visible? only the headings of the columns are visible

21 Views Asked by At

In Python, I tried to generate rules using association rule.

In the output only the column names are displayed and the content is not. the following are the codes that I have used:

frequent_itemsets = apriori(basket_sets, min_support=0.01, use_colnames=True)
rules1 = association_rules(frequent_itemsets, metric="lift", min_threshold=0.0001)
rules1.head()

Why is this so?

0

There are 0 best solutions below