How to Solve NameError: name 'copy' is not defined -- xlutils

Solution: Import the 'copy' module

To Solve the error, add the following line to the top of your code.

from xlutils.copy import copy

 

For more information:
Python xlutils copy