How to compare 2 dataframes?
Simple way to compare 2 dataframes.
Code sample
from pandas.testing import assert_frame_equal import pandas as pd df1 = pd.DataFrame({'col1': [1,2,3], 'col2': [4,5,6]}) df2 = pd.DataFrame({'col1': [1,3,4], 'col2': [4,5,6]}) assert_frame_equal(df1, df2)