How to Solve NameError: name 'association_rules' is not defined -- mlxtend
Solution: Import the 'apriori, association_rules' module
To Solve the error, add the following line to the top of your code.
from mlxtend import association_rules
For more information:
Python association_rules mlxtend