np.stack(np.where(df.values)).reshape(-1, 2)
array([[0, 0], [1, 1], [2, 2], [3, 3], [4, 5], [6, 7], [8, 9], [9, 0], [2, 
    0], [1, 1], [2, 1], [2, 0], [1, 0], [1, 2], [0, 2]])
Binary Image Dataframe to Euclidean coordinates