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