ones = cor[cor > 0.999].reset_index().loc[:, (['level_0', 'level_1'])]
ones = ones.query('level_0 not in level_1')
ones.groupby('level_0').agg(lambda x: set(chain(x.level_0, x.level_1))).values
Returning groups of correlated columns in pandas data frame