Comparing dataframe A with B

df_a.equals(df_b)
df_a.columns.equals(df_b.columns)
df_c=df_a.compare(df_b, keep_equal=True)
print(‘df_c=\n’, df_c)
df_a.compare(df_b, keep_shape=True)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store