How to Solve NameError: name 'DataFrame' is not defined -- pandas

Solution: Import the 'DataFrame' module

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

from pandas import DataFrame

 

For more information:
Python pandas DataFrame