title: how to use str.replace() as the function in map()
body: <p>I have a list of rows returned from an excel sheet. I want to use the replace function on each item in row to replace <code>'</code> with <code>\'</code></p>
  
  <p>however, this does not work:</p>
  
  <pre><code>row = map(replace('\'', "\\'"), row)
  </code></pre>
  
  <p>this just gives an error about replace taking at most 3 arguments but only having 2.</p>
  
  <p>is there a way to use replace with map in python?</p>