title: IPython + pandas oneliner not working
body: <p>I am trying to do a oneliner on IPython but I get <code>SyntaxError: invalid syntax</code>. The code is the following:</p>
  
  <pre><code> for zzz in ddd.index: zzz1 = zzz.split('///'); zzz3 = [zzz2.strip() for zzz2 in zzz1 if len(zzz1) &gt; 1]; for zzz4 in zzz3: ddd.ix[zzz4]['Class'] = ddd.ix[zzz]['Class']; del ddd.ix[zzz]
  </code></pre>
  
  <p>I can explain it as:
  For each value on the index of DataFrame <code>ddd</code> I split it using <code>///</code> as a separator. Then, if there are multiple values returned, I create a row for each value and remove the original row.
  In example I have:</p>
  
  <pre><code>             Class
  lal          1
  eri /// iii  2
  aks          3
  </code></pre>
  
  <p>I want to obtain</p>
  
  <pre><code>             Class
  lal          1
  eri          2
  iii          2
  aks          3
  </code></pre>
  
  <p>The first column (`lal', 'eri', ... ) is the index of dataframe.</p>
  
  <p>How can I achieve this? I have searched through the documentation but I did not manage out how to do it.</p>
  
  <p>Thanks</p>