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