title: Remove Backslashes from Data with Python 2.7
body: <p>Disclaimer: I have about 3 months of programming experience ... so apologies in advance for any stupid questions.</p>
  
  <p>I have a 9GB CSV file I'm trying to clean up using Python 2.7 </p>
  
  <p>I need to remove/replace/strip whatever you want to call it .... all instances of "\" scattered throughout the data.</p>
  
  <p>This is what I've come up with so far:</p>
  
  <pre><code>#Python 2.7
  csvfileIn = open("dataexample.csv", "r")
  csvOut = open("dataexample2.csv", "w")
  for i, row in enumerate(csvfileIn.readline()):
      row = row.replace("\"", "")
      csvOut.write(row)
  csvOut.close()
  </code></pre>
  
  <p>This does not iterate through the CSV file as I hoped it would.
  I was given the advice to use readline() as opposed to readlines() because the file is so large.</p>
  
  <p>I would attach the example data file, but I don't have enough street cred to attach a file. I guess the last question I posted was stupid, so I lost some rep points.
  <a href="https://i.stack.imgur.com/CgLvA.jpg" rel="nofollow noreferrer">screenshot of example data</a></p>
  
  <p>Thank you for any help!</p>
  
  <p><em>Updated/Fixed Code</em></p>
  
  <pre><code>#Python 2.7
  csvfileIn = open("dataexample.csv", "r")
  csvOut = open("dataexample2.csv", "w")
  
  
  for i, row in enumerate(csvfileIn):
      row = row.replace("\\", "")
      csvOut.write(row)
  
  
  csvOut.close()
  csvfileIn.close()
  </code></pre>