title: How to get the length of a cell value in pandas dataframe?
body: <p>Have a pandas dataframe:</p>
  
  <pre><code>idx Event
  0   abc/def
  1   abc
  2   abc/def/hij
  </code></pre>
  
  <p>Run: <code>df['EventItem'] = df['Event'].str.split("/")</code></p>
  
  <p>Got:</p>
  
  <pre><code>idx EventItem
  0   ['abc','def']
  1   ['abc']
  2   ['abc','def','hij']
  </code></pre>
  
  <p>Want to get the length of each <code>cell</code>, run <code>df['EventCount'] = len(df['EventItem'])</code></p>
  
  <p>Got:</p>
  
  <pre><code>idx EventCount
  0   6
  1   6
  2   6
  </code></pre>
  
  <p>How can I get the correct count as follow?</p>
  
  <pre><code>idx EventCount
  0   2
  1   1
  2   3
  </code></pre>