How can I get all the Positions in Pandas where there are NAN values. For Example,
sample = pd.DataFrame(np.zeros(shape=[5,5]))
sample.iloc[0,0] = np.nan
sample.iloc[2,3] = np.nan
sample.iloc[4,3] = np.nan
is a Pandas Data Frame where the Positions such as (0,0), (2,3) and(4,3) have nan Values. Consequently, I want a list of Tuples like this
[(0,0),(2,3),(4,3)]
Ho can I get this ?
Regards