title: Element wise multiplication of each row
body: <p>I have two <code>DataFrame</code> objects which I want to apply an element-wise multiplication on each row onto:</p>
  
  <pre><code>df_prob_wc.shape  # (3505, 13)
  df_prob_c.shape   # (13, 1)
  </code></pre>
  
  <p>I thought I could do it with <code>DataFrame.apply()</code> </p>
  
  <pre><code>df_prob_wc.apply(lambda x: x.multiply(df_prob_c), axis=1)
  </code></pre>
  
  <p>which gives me:</p>
  
  <pre><code>TypeError: ("'int' object is not iterable", 'occurred at index $')
  </code></pre>
  
  <p>or with</p>
  
  <pre><code>df_prob_wc.apply(lambda x: x * df_prob_c, axis=1)
  </code></pre>
  
  <p>which gives me:</p>
  
  <pre><code>TypeError: 'int' object is not iterable
  </code></pre>
  
  <p>But it's not working.
  However, I can do this:</p>
  
  <pre><code>df_prob_wc.apply(lambda x: x * np.asarray([1,2,3,4,5,6,7,8,9,10,11,12,13]), axis=1)
  </code></pre>
  
  <p>What am I doing wrong here?</p>