I would like to compare two Pandas DataFrames and get the indices of the differences.
import numpy as np
import pandas as pd
rng = pd.date_range('2019-03-04', periods=5)
cols = ['A', 'B', 'C', 'D']
df1 = pd.DataFrame(np.arange(20).reshape(5, 4), index=rng, columns=cols)
df2 = pd.DataFrame(np.arange(20).reshape(5, 4), index=rng, columns=cols)
df2.iloc[2, 2] = 100
df2.iloc[3, 1] = 50
df1.equals(df2) # OK, good to know, but where is the difference?
df1 == df2 # Nice, too. But I'm interested in the indices!
# I need a list containing [(2,2), (3,1)]. Even more intuitive would be something like [('2019-03-06', 'C'), ('2019-03-07', 'B')]
EDIT: I don't necessarily need a list, but something to identify the indices. That is, if there is a simple and intuitive way to solve that issue without a list, that's fine. However, a list will also be OK.