If you want to compute between rows or columns of two DataFrame, use corrwith.
corrwith
Link to my previous tips on pandas.