How to find ratio in python pandas. stack() return cor_pairs.