title: can some one please verify mistakes
body: <p>suppose I have a line  -</p>
  <pre><code>NM1*85*2*NIVE HEALTH PHARMA, P.C. 428*****XX*1679857825~
  </code></pre>
  <p>and from this I want to extract 1679857825 and append it to make a new column name df['npi']
  and for that I am writing code -</p>
  <pre><code>if 'NM1*85*' in line and (line.split('NM1*85*')[1].split('*')[7][-9:].strip('~')[:5]).isnumeric() and (line.split('NM1*85*')[1].split('*')[7][0:9]).isnumeric():
      row['NPI'] = (line.split('NM1*85*')[1].split('*')[7].translate({ord('~'):None}))
      claims_yos.append(row)
  </code></pre>
  <p>but my output is coming 0 where as it should be 1679857825. can some one verify the mistakes</p>