title: How to separate an object datatype from a column into multiple columns?
body: <p>My Input is like</p>
  <p>&quot;OAM IP:  2001:0506:441c:0710:0000:0011:0814:0002&quot;</p>
  <p>which is in a single column, I want to separate it in two column where in the 1st column it contains &quot;OAM IP&quot; which will be always constant and in the 2nd column it will  be 2001:0506:441c:0710:0000:0011:0814:0002 which will change.
  I am not able to separate it as it is not a string.</p>
  <p>How to write the function with OAM IP in one column ant the numbers into others?</p>
  <p>Thanks in advance !</p>
  <pre><code>infile = (r&quot;C://Users/emonbud/Desktop/Automation/OML02669_PreCheck_08032020_0411.json&quot;)
  important = []
  with open(infile) as f:
      f = f.readlines()
  
  for line in f:
      for phrase in keep_phrases:
          if phrase in line:
              important.append(line)
              break
  
  #print(important)
  #s=important
  #listToStr = ' '.join(map(str, s))   
  #print(listToStr)
  
  df = pd.DataFrame(important)
  df.to_csv('C://Users/emonbud/Desktop/Automation/aaroha.csv', index=False, header=False)
  df.drop_duplicates()
  df.head() 
  </code></pre>
  <p><a href="https://i.stack.imgur.com/Jawe7.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>Please have a look on this image for better understanding.</p>
  <p><a href="https://i.stack.imgur.com/M7OYR.png" rel="nofollow noreferrer">enter image description here</a></p>