title: Pandas: how to convert a cell with multiple values to multiple rows?
body: <p>I have a DataFrame like this:</p>
  
  <pre><code>Name asn  count
  Org1 asn1,asn2 1
  org2 asn3      2
  org3 asn4,asn5 5
  </code></pre>
  
  <p>I would like to convert my DataFrame to look like this:</p>
  
  <pre><code>Name asn  count
  Org1 asn1 1
  Org1 asn2 1 
  org2 asn3 2
  org3 asn4 5
  Org3 asn5 5
  </code></pre>
  
  <p>I know used the following code to do it with two columns, but I am not sure how can I do it for three.</p>
  
  <pre><code>df2 = df.asn.str.split(',').apply(pd.Series)          
  df2.index = df.Name                                   
  df2 = df2.stack().reset_index('Name') 
  </code></pre>
  
  <p>Can anybody help?</p>