Simlarly to this post: efficient function to find harmonic mean across different pandas dataframes I have two Pandas dataframes that are identical in shape and I want to fin