How to Solve NameError: name 'apriori' 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 apriori

 

For more information:
Python apriori mlxtend