I have a pandas DataFrame with n ids as columns and indices. Is there some easy method that I'm not considering to convert this to n2 rows of distances like so?
id1 id2
id1 0 .75
id2 .75 0
to
id1 id2 .75
id1 id1 0
id2 id2 0
id2 id1 .75