title: How I can create an interval column in pandas?
body: <p>I hav a data frame like : </p>
  
  <pre><code>name1       name2    mounth 
   A            B        01
   B            C        02
   A            B        02
   A            B        04
   B            C        03
  </code></pre>
  
  <p>I want to creat a column that shows interval for each pair of names: </p>
  
  <pre><code>name1        name2     interval 
   A            B        [1,2];[4,4]
   B            C        [2,3]
  </code></pre>
  
  <p>Is it possible to create interval like above column  in pandas ?</p>