title: Other ways to remove commas in a row of a given column
body: <p><strong>Likes</strong></p>
  
  <pre><code>1.49
  2.312
  3.499
  4.1,204
  5.3,001
  6.2,500
  </code></pre>
  
  <p>In the above <code>Likes</code> column there are six rows and I want to remove comma in rows  4, 5, and 6. I tried to remove the comma by using below mentioned code:</p>
  
  <pre><code>b=[]
  c=train['Likes']
  for i in c:
      d=i.split(',')
      e=d[0]+d[1]
      b.append(e)
  train['likes']=b
  </code></pre>
  
  <p>After running the above code I got error as:</p>
  
  <pre><code> IndexError                                Traceback (most recent call last)
  &lt;ipython-input-41-aaaf683b8888&gt; in &lt;module&gt;
        3 for i in c:
        4     d=i.split(',')
  ----&gt; 5     e=d[0]+d[1]
        6     b.append(e)
        7     #b.append(f)
  
  IndexError: list index out of range
  </code></pre>
  
  <p>How to solve the above issue?</p>