With the following statement:
rules = association_rules(frequent_itemsets, metric="lift", min_threshold=1.2)
I get a data frame of rules in the format:
frozenset({'Co_Apples'})
But I need to extract a Co_Apples
as a string.
How can I do that?
list(rules)[0]
. – Favouritism