how to remove comma in python string code example Example: remove comma from string python column df['x']=df['x'].str.replace(',','')