title: pandas apply function to corresponding cells of multiple frames
body: <p>I'm trying to apply a function to corresponding cells of two identically sized dataFrames to create a new frame.</p>
  
  <p>In pseudocode I'd like to do the following:  </p>
  
  <pre><code>def someFunction(df1, df2):
    #apply Levenstein.ratio() to the corresponding cells in df1, df2. eg 
    #eg:df1.iloc[0]['colA'] compare to df2.iloc[0]['colA'] etc
  
  frameC= someFunction(frameA, frameB)
  </code></pre>
  
  <p>I could write the nested for loops and iterate over each row/column of the frames to do this, but that would be slow and tedious.  Is there a better way to do this in pandas?  I've been playing around with the df.apply() function and can't seem to figure out how to efficiently compare the corresponding cells of two different dataframes.</p>