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

Solution: Import the 'assert_frame_equal' module

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

from pandas._testing import assert_frame_equal

 

For more information:
Python pandas assert_frame_equal